class Base::Crop
Class for the crop data.
Attributes
height[R]
left[R]
top[R]
width[R]
Public Class Methods
new(width:, height:, left:, top:)
click to toggle source
# File lib/base/models/crop.rb, line 11 def initialize(width:, height:, left:, top:) @height = height @width = width @left = left @top = top end
Public Instance Methods
to_s()
click to toggle source
# File lib/base/models/crop.rb, line 18 def to_s [@width, @height, @left, @top].join('_') end