Class: AILabTools::Generated::Params::PortraitHairstyleEditingProParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitHairstyleEditingProParams
- Defined in:
- lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb
Instance Attribute Summary collapse
-
#bangs ⇒ Object
readonly
Returns the value of attribute bangs.
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#hair_style ⇒ Object
readonly
Returns the value of attribute hair_style.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#image_size ⇒ Object
readonly
Returns the value of attribute image_size.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#task_type ⇒ Object
readonly
Returns the value of attribute task_type.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(task_type:, image:, hair_style:, color: nil, image_size: nil, mask: nil, bangs: nil, mode: nil, reference: nil) ⇒ PortraitHairstyleEditingProParams
constructor
A new instance of PortraitHairstyleEditingProParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(task_type:, image:, hair_style:, color: nil, image_size: nil, mask: nil, bangs: nil, mode: nil, reference: nil) ⇒ PortraitHairstyleEditingProParams
Returns a new instance of PortraitHairstyleEditingProParams.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 8 def initialize(task_type:, image:, hair_style:, color: nil, image_size: nil, mask: nil, bangs: nil, mode: nil, reference: nil) @task_type = task_type @image = image @hair_style = hair_style @color = color @image_size = image_size @mask = mask @bangs = bangs @mode = mode @reference = reference end |
Instance Attribute Details
#bangs ⇒ Object (readonly)
Returns the value of attribute bangs.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def bangs @bangs end |
#color ⇒ Object (readonly)
Returns the value of attribute color.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def color @color end |
#hair_style ⇒ Object (readonly)
Returns the value of attribute hair_style.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def hair_style @hair_style end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_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/portrait_hairstyle_editing_pro_params.rb', line 7 def image_size @image_size end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def mask @mask end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def mode @mode end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def reference @reference end |
#task_type ⇒ Object (readonly)
Returns the value of attribute task_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 7 def task_type @task_type end |
Instance Method Details
#body_fields ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 24 def body_fields compact_hash({ "task_type" => @task_type, "image" => @image, "hair_style" => @hair_style, "color" => @color, "image_size" => @image_size, "mask" => @mask, "bangs" => @bangs, "mode" => @mode, "reference" => @reference, }) end |
#query_fields ⇒ Object
20 21 22 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_pro_params.rb', line 20 def query_fields {} end |