gitlab-org--gitlab-foss/lib/gitlab/diff/image_point.rb

24 lines
367 B
Ruby
Raw Normal View History

2017-10-07 00:25:17 -04:00
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