Class: AILabTools::Generated::Params::PortraitIntelligentBeautificationParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitIntelligentBeautificationParams
- Defined in:
- lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb
Instance Attribute Summary collapse
-
#beauty_level ⇒ Object
readonly
Returns the value of attribute beauty_level.
-
#image_target ⇒ Object
readonly
Returns the value of attribute image_target.
-
#multi_face ⇒ Object
readonly
Returns the value of attribute multi_face.
-
#task_type ⇒ Object
readonly
Returns the value of attribute task_type.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image_target:, multi_face: nil, beauty_level: nil, task_type: nil) ⇒ PortraitIntelligentBeautificationParams
constructor
A new instance of PortraitIntelligentBeautificationParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image_target:, multi_face: nil, beauty_level: nil, task_type: nil) ⇒ PortraitIntelligentBeautificationParams
Returns a new instance of PortraitIntelligentBeautificationParams.
8 9 10 11 12 13 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb', line 8 def initialize(image_target:, multi_face: nil, beauty_level: nil, task_type: nil) @image_target = image_target @multi_face = multi_face @beauty_level = beauty_level @task_type = task_type end |
Instance Attribute Details
#beauty_level ⇒ Object (readonly)
Returns the value of attribute beauty_level.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb', line 7 def beauty_level @beauty_level end |
#image_target ⇒ Object (readonly)
Returns the value of attribute image_target.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb', line 7 def image_target @image_target end |
#multi_face ⇒ Object (readonly)
Returns the value of attribute multi_face.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb', line 7 def multi_face @multi_face end |
#task_type ⇒ Object (readonly)
Returns the value of attribute task_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_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_intelligent_beautification_params.rb', line 19 def body_fields compact_hash({ "image_target" => @image_target, "multi_face" => @multi_face, "beauty_level" => @beauty_level, "task_type" => @task_type, }) end |
#query_fields ⇒ Object
15 16 17 |
# File 'lib/ailabtools/generated/params/portrait_intelligent_beautification_params.rb', line 15 def query_fields {} end |