Class: AILabTools::Generated::Params::PortraitHairstyleEditingProParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_type:, image:, hair_style:, color: nil, image_size: nil, mask: nil, bangs: nil, mode: nil, reference: nil) ⇒ PortraitHairstyleEditingProParams

Returns a new instance of PortraitHairstyleEditingProParams.



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

def initialize(task_type:, image:, hair_style:, color: nil, image_size: nil, mask: nil, bangs: nil, mode: nil, reference: nil)
  @task_type = task_type
  @image = image
  @hair_style = hair_style
  @color = color
  @image_size = image_size
  @mask = mask
  @bangs = bangs
  @mode = mode
  @reference = reference
end

Instance Attribute Details

#bangsObject (readonly)

Returns the value of attribute bangs.



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

def bangs
  @bangs
end

#colorObject (readonly)

Returns the value of attribute color.



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

def color
  @color
end

#hair_styleObject (readonly)

Returns the value of attribute hair_style.



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

def hair_style
  @hair_style
end

#imageObject (readonly)

Returns the value of attribute image.



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

def image
  @image
end

#image_sizeObject (readonly)

Returns the value of attribute image_size.



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

def image_size
  @image_size
end

#maskObject (readonly)

Returns the value of attribute mask.



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

def mask
  @mask
end

#modeObject (readonly)

Returns the value of attribute mode.



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

def mode
  @mode
end

#referenceObject (readonly)

Returns the value of attribute reference.



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

def reference
  @reference
end

#task_typeObject (readonly)

Returns the value of attribute task_type.



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

def task_type
  @task_type
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_hairstyle_editing_pro_params.rb', line 24

def body_fields
  compact_hash({
    "task_type" => @task_type,
    "image" => @image,
    "hair_style" => @hair_style,
    "color" => @color,
    "image_size" => @image_size,
    "mask" => @mask,
    "bangs" => @bangs,
    "mode" => @mode,
    "reference" => @reference,
  })
end

#query_fieldsObject



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

def query_fields
  {}
end