Class: AILabTools::Generated::Params::PortraitTryOnClothesPremiumParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitTryOnClothesPremiumParams
- Defined in:
- lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb
Instance Attribute Summary collapse
-
#bottom_garment ⇒ Object
readonly
Returns the value of attribute bottom_garment.
-
#person_image ⇒ Object
readonly
Returns the value of attribute person_image.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
-
#restore_face ⇒ Object
readonly
Returns the value of attribute restore_face.
-
#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:, resolution: nil, restore_face: nil, bottom_garment: nil) ⇒ PortraitTryOnClothesPremiumParams
constructor
A new instance of PortraitTryOnClothesPremiumParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(task_type:, person_image:, top_garment:, resolution: nil, restore_face: nil, bottom_garment: nil) ⇒ PortraitTryOnClothesPremiumParams
Returns a new instance of PortraitTryOnClothesPremiumParams.
8 9 10 11 12 13 14 15 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 8 def initialize(task_type:, person_image:, top_garment:, resolution: nil, restore_face: nil, bottom_garment: nil) @task_type = task_type @person_image = person_image @top_garment = top_garment @resolution = resolution @restore_face = restore_face @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_premium_params.rb', line 7 def bottom_garment @bottom_garment end |
#person_image ⇒ Object (readonly)
Returns the value of attribute person_image.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 7 def person_image @person_image end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 7 def resolution @resolution end |
#restore_face ⇒ Object (readonly)
Returns the value of attribute restore_face.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 7 def restore_face @restore_face end |
#task_type ⇒ Object (readonly)
Returns the value of attribute task_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_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_premium_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_premium_params.rb', line 21 def body_fields compact_hash({ "task_type" => @task_type, "person_image" => @person_image, "top_garment" => @top_garment, "resolution" => @resolution, "restore_face" => @restore_face, "bottom_garment" => @bottom_garment, }) end |
#query_fields ⇒ Object
17 18 19 |
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 17 def query_fields {} end |