summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/image_point.rb
blob: 65332dfd239e89ef87d60cd633e9d0ca7bc12507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Gitlab
  module Diff
    class ImagePoint
      attr_reader :width, :height, :x, :y

      def initialize(width, height, x, y)
        @width = width
        @height = height
        @x = x
        @y = y
      end

      def to_h
        {
          width: width,
          height: height,
          x: x,
          y: y
        }
      end
    end
  end
end