Class: AILabTools::Generated::Params::PortraitAISkinEnhancementAdvancedParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image:, smart_skin: nil, acne_removal: nil, spot_correction: nil, skin_brightening: nil, skin_smoothing: nil, pore_control: nil, wrinkle_reduction: nil, under_eye_correction: nil, scar_reduction: nil) ⇒ PortraitAISkinEnhancementAdvancedParams

Returns a new instance of PortraitAISkinEnhancementAdvancedParams.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 8

def initialize(image:, smart_skin: nil, acne_removal: nil, spot_correction: nil, skin_brightening: nil, skin_smoothing: nil, pore_control: nil, wrinkle_reduction: nil, under_eye_correction: nil, scar_reduction: nil)
  @image = image
  @smart_skin = smart_skin
  @acne_removal = acne_removal
  @spot_correction = spot_correction
  @skin_brightening = skin_brightening
  @skin_smoothing = skin_smoothing
  @pore_control = pore_control
  @wrinkle_reduction = wrinkle_reduction
  @under_eye_correction = under_eye_correction
  @scar_reduction = scar_reduction
end

Instance Attribute Details

#acne_removalObject (readonly)

Returns the value of attribute acne_removal.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def acne_removal
  @acne_removal
end

#imageObject (readonly)

Returns the value of attribute image.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def image
  @image
end

#pore_controlObject (readonly)

Returns the value of attribute pore_control.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def pore_control
  @pore_control
end

#scar_reductionObject (readonly)

Returns the value of attribute scar_reduction.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def scar_reduction
  @scar_reduction
end

#skin_brighteningObject (readonly)

Returns the value of attribute skin_brightening.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def skin_brightening
  @skin_brightening
end

#skin_smoothingObject (readonly)

Returns the value of attribute skin_smoothing.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def skin_smoothing
  @skin_smoothing
end

#smart_skinObject (readonly)

Returns the value of attribute smart_skin.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def smart_skin
  @smart_skin
end

#spot_correctionObject (readonly)

Returns the value of attribute spot_correction.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def spot_correction
  @spot_correction
end

#under_eye_correctionObject (readonly)

Returns the value of attribute under_eye_correction.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def under_eye_correction
  @under_eye_correction
end

#wrinkle_reductionObject (readonly)

Returns the value of attribute wrinkle_reduction.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 7

def wrinkle_reduction
  @wrinkle_reduction
end

Instance Method Details

#body_fieldsObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 25

def body_fields
  compact_hash({
    "image" => @image,
    "smart_skin" => @smart_skin,
    "acne_removal" => @acne_removal,
    "spot_correction" => @spot_correction,
    "skin_brightening" => @skin_brightening,
    "skin_smoothing" => @skin_smoothing,
    "pore_control" => @pore_control,
    "wrinkle_reduction" => @wrinkle_reduction,
    "under_eye_correction" => @under_eye_correction,
    "scar_reduction" => @scar_reduction,
  })
end

#query_fieldsObject



21
22
23
# File 'lib/ailabtools/generated/params/portrait_ai_skin_enhancement_advanced_params.rb', line 21

def query_fields
  {}
end