Class: AILabTools::Generated::Params::PortraitTryOnClothesRefinerParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitTryOnClothesRefinerParams
- Defined in:
- lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb
Instance Attribute Summary collapse
-
#bottom_garment ⇒ Object
readonly
Returns the value of attribute bottom_garment.
-
#coarse_image ⇒ Object
readonly
Returns the value of attribute coarse_image.
-
#gender ⇒ Object
readonly
Returns the value of attribute gender.
-
#person_image ⇒ Object
readonly
Returns the value of attribute person_image.
-
#task_type ⇒ Object
readonly
Returns the value of attribute task_type.
-
#top_garment ⇒ Object
readonly
Returns the value of attribute top_garment.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(task_type:, person_image:, top_garment:, coarse_image:, gender:, bottom_garment: nil) ⇒ PortraitTryOnClothesRefinerParams
constructor
A new instance of PortraitTryOnClothesRefinerParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(task_type:, person_image:, top_garment:, coarse_image:, gender:, bottom_garment: nil) ⇒ PortraitTryOnClothesRefinerParams
Returns a new instance of PortraitTryOnClothesRefinerParams.
8 9 10 11 12 13 14 15 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 8 def initialize(task_type:, person_image:, top_garment:, coarse_image:, gender:, bottom_garment: nil) @task_type = task_type @person_image = person_image @top_garment = top_garment @coarse_image = coarse_image @gender = gender @bottom_garment = bottom_garment end |
Instance Attribute Details
#bottom_garment ⇒ Object (readonly)
Returns the value of attribute bottom_garment.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 7 def bottom_garment @bottom_garment end |
#coarse_image ⇒ Object (readonly)
Returns the value of attribute coarse_image.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 7 def coarse_image @coarse_image end |
#gender ⇒ Object (readonly)
Returns the value of attribute gender.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 7 def gender @gender end |
#person_image ⇒ Object (readonly)
Returns the value of attribute person_image.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_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_refiner_params.rb', line 7 def task_type @task_type end |
#top_garment ⇒ Object (readonly)
Returns the value of attribute top_garment.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 7 def top_garment @top_garment end |
Instance Method Details
#body_fields ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 21 def body_fields compact_hash({ "task_type" => @task_type, "person_image" => @person_image, "top_garment" => @top_garment, "coarse_image" => @coarse_image, "gender" => @gender, "bottom_garment" => @bottom_garment, }) end |
#query_fields ⇒ Object
17 18 19 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_refiner_params.rb', line 17 def query_fields {} end |