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