Class: AILabTools::Generated::Params::PortraitHairstyleEditingParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitHairstyleEditingParams
- Defined in:
- lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb
Instance Attribute Summary collapse
-
#hair_type ⇒ Object
readonly
Returns the value of attribute hair_type.
-
#image_target ⇒ Object
readonly
Returns the value of attribute image_target.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image_target:, hair_type: nil) ⇒ PortraitHairstyleEditingParams
constructor
A new instance of PortraitHairstyleEditingParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image_target:, hair_type: nil) ⇒ PortraitHairstyleEditingParams
Returns a new instance of PortraitHairstyleEditingParams.
8 9 10 11 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb', line 8 def initialize(image_target:, hair_type: nil) @image_target = image_target @hair_type = hair_type end |
Instance Attribute Details
#hair_type ⇒ Object (readonly)
Returns the value of attribute hair_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb', line 7 def hair_type @hair_type end |
#image_target ⇒ Object (readonly)
Returns the value of attribute image_target.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb', line 7 def image_target @image_target end |
Instance Method Details
#body_fields ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb', line 17 def body_fields compact_hash({ "image_target" => @image_target, "hair_type" => @hair_type, }) end |
#query_fields ⇒ Object
13 14 15 |
# File 'lib/ailabtools/generated/params/portrait_hairstyle_editing_params.rb', line 13 def query_fields {} end |