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