mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-06 10:19:48 +00:00
24 lines
367 B
Ruby
24 lines
367 B
Ruby
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
|