Class: AILabTools::Generated::Params::ImageAIImageCroppingParams
- Defined in:
- lib/ailabtools/generated/params/image_ai_image_cropping_params.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, width:, height:) ⇒ ImageAIImageCroppingParams
constructor
A new instance of ImageAIImageCroppingParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image:, width:, height:) ⇒ ImageAIImageCroppingParams
Returns a new instance of ImageAIImageCroppingParams.
8 9 10 11 12 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 8 def initialize(image:, width:, height:) @image = image @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 7 def height @height end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 7 def image @image end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 7 def width @width end |
Instance Method Details
#body_fields ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 18 def body_fields compact_hash({ "image" => @image, "width" => @width, "height" => @height, }) end |
#query_fields ⇒ Object
14 15 16 |
# File 'lib/ailabtools/generated/params/image_ai_image_cropping_params.rb', line 14 def query_fields {} end |