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