Class: AILabTools::Generated::Params::ImageAIFlowerWallpaperParams

Inherits:
Params
  • Object
show all
Defined in:
lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_ratioObject (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

#backgroundObject (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_elementsObject (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

#nameObject (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

#styleObject (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_fieldsObject



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_fieldsObject



16
17
18
# File 'lib/ailabtools/generated/params/image_ai_flower_wallpaper_params.rb', line 16

def query_fields
  {}
end