Class: AILabTools::Generated::Params::PortraitFacialBeautificationProParams

Inherits:
Params
  • Object
show all
Defined in:
lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_eyeObject (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_typeObject (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

#imageObject (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_eyebrowObject (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_faceObject (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

#smoothingObject (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_typeObject (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

#thinfaceObject (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

#whiteningObject (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_fieldsObject



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_fieldsObject



20
21
22
# File 'lib/ailabtools/generated/params/portrait_facial_beautification_pro_params.rb', line 20

def query_fields
  {}
end