Class: AILabTools::Generated::Params::PortraitFacialBeautificationProParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::PortraitFacialBeautificationProParams
- Defined in:
- lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb
Instance Attribute Summary collapse
-
#enlarge_eye ⇒ Object
readonly
Returns the value of attribute enlarge_eye.
-
#filter_type ⇒ Object
readonly
Returns the value of attribute filter_type.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#remove_eyebrow ⇒ Object
readonly
Returns the value of attribute remove_eyebrow.
-
#shrink_face ⇒ Object
readonly
Returns the value of attribute shrink_face.
-
#smoothing ⇒ Object
readonly
Returns the value of attribute smoothing.
-
#task_type ⇒ Object
readonly
Returns the value of attribute task_type.
-
#thinface ⇒ Object
readonly
Returns the value of attribute thinface.
-
#whitening ⇒ Object
readonly
Returns the value of attribute whitening.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, whitening: nil, smoothing: nil, thinface: nil, shrink_face: nil, enlarge_eye: nil, remove_eyebrow: nil, filter_type: nil, task_type: nil) ⇒ PortraitFacialBeautificationProParams
constructor
A new instance of PortraitFacialBeautificationProParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image:, whitening: nil, smoothing: nil, thinface: nil, shrink_face: nil, enlarge_eye: nil, remove_eyebrow: nil, filter_type: nil, task_type: nil) ⇒ PortraitFacialBeautificationProParams
Returns a new instance of PortraitFacialBeautificationProParams.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 8 def initialize(image:, whitening: nil, smoothing: nil, thinface: nil, shrink_face: nil, enlarge_eye: nil, remove_eyebrow: nil, filter_type: nil, task_type: nil) @image = image @whitening = whitening @smoothing = smoothing @thinface = thinface @shrink_face = shrink_face @enlarge_eye = enlarge_eye @remove_eyebrow = remove_eyebrow @filter_type = filter_type @task_type = task_type end |
Instance Attribute Details
#enlarge_eye ⇒ Object (readonly)
Returns the value of attribute enlarge_eye.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def enlarge_eye @enlarge_eye end |
#filter_type ⇒ Object (readonly)
Returns the value of attribute filter_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def filter_type @filter_type end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def image @image end |
#remove_eyebrow ⇒ Object (readonly)
Returns the value of attribute remove_eyebrow.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def remove_eyebrow @remove_eyebrow end |
#shrink_face ⇒ Object (readonly)
Returns the value of attribute shrink_face.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def shrink_face @shrink_face end |
#smoothing ⇒ Object (readonly)
Returns the value of attribute smoothing.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def smoothing @smoothing end |
#task_type ⇒ Object (readonly)
Returns the value of attribute task_type.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def task_type @task_type end |
#thinface ⇒ Object (readonly)
Returns the value of attribute thinface.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def thinface @thinface end |
#whitening ⇒ Object (readonly)
Returns the value of attribute whitening.
7 8 9 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 7 def whitening @whitening end |
Instance Method Details
#body_fields ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 24 def body_fields compact_hash({ "image" => @image, "whitening" => @whitening, "smoothing" => @smoothing, "thinface" => @thinface, "shrink_face" => @shrink_face, "enlarge_eye" => @enlarge_eye, "remove_eyebrow" => @remove_eyebrow, "filter_type" => @filter_type, "task_type" => @task_type, }) end |
#query_fields ⇒ Object
20 21 22 |
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 20 def query_fields {} end |