Class: AILabTools::Generated::Params::ImageAIFlowerWallpaperParams
- Defined in:
- lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ Object
readonly
Returns the value of attribute aspect_ratio.
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#flower_elements ⇒ Object
readonly
Returns the value of attribute flower_elements.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(name: nil, flower_elements: nil, style: nil, background: nil, aspect_ratio: nil) ⇒ ImageAIFlowerWallpaperParams
constructor
A new instance of ImageAIFlowerWallpaperParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(name: nil, flower_elements: nil, style: nil, background: nil, aspect_ratio: nil) ⇒ ImageAIFlowerWallpaperParams
Returns a new instance of ImageAIFlowerWallpaperParams.
8 9 10 11 12 13 14 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 8 def initialize(name: nil, flower_elements: nil, style: nil, background: nil, aspect_ratio: nil) @name = name @flower_elements = flower_elements @style = style @background = background @aspect_ratio = aspect_ratio end |
Instance Attribute Details
#aspect_ratio ⇒ Object (readonly)
Returns the value of attribute aspect_ratio.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 7 def aspect_ratio @aspect_ratio end |
#background ⇒ Object (readonly)
Returns the value of attribute background.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 7 def background @background end |
#flower_elements ⇒ Object (readonly)
Returns the value of attribute flower_elements.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 7 def flower_elements @flower_elements end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 7 def name @name end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 7 def style @style end |
Instance Method Details
#body_fields ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 20 def body_fields compact_hash({ "name" => @name, "flower_elements" => @flower_elements, "style" => @style, "background" => @background, "aspect_ratio" => @aspect_ratio, }) end |
#query_fields ⇒ Object
16 17 18 |
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 16 def query_fields {} end |