debian-mirror-gitlab/lib/gitlab/diff/image_point.rb
2019-02-13 22:33:31 +05:30

25 lines
414 B
Ruby

# frozen_string_literal: true
module Gitlab
module Diff
class ImagePoint
attr_reader :width, :height, :x, :y
def initialize(width, height, new_x, new_y)
@width = width
@height = height
@x = new_x
@y = new_y
end
def to_h
{
width: width,
height: height,
x: x,
y: y
}
end
end
end
end