Class: Image::Transform
- Inherits:
-
BaseFormObject
- Object
- BaseFormObject
- Image::Transform
- Defined in:
- app/forms/image/transform.rb
Overview
Form object: transform.
Instance Method Summary collapse
Methods inherited from BaseFormObject
#attributes, #initialize, #persisted?
Constructor Details
This class inherits a constructor from BaseFormObject
Instance Method Details
#to_crop_data ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/forms/image/transform.rb', line 16 def to_crop_data { x: crop_x, y: crop_y, width: crop_w, height: crop_h }.compact end |