Class: AILabTools::Generated::Params::PortraitTryOnClothesPremiumParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_type:, person_image:, top_garment:, resolution: nil, restore_face: nil, bottom_garment: nil) ⇒ PortraitTryOnClothesPremiumParams

Returns a new instance of PortraitTryOnClothesPremiumParams.



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

def initialize(task_type:, person_image:, top_garment:, resolution: nil, restore_face: nil, bottom_garment: nil)
  @task_type = task_type
  @person_image = person_image
  @top_garment = top_garment
  @resolution = resolution
  @restore_face = restore_face
  @bottom_garment = bottom_garment
end

Instance Attribute Details

#bottom_garmentObject (readonly)

Returns the value of attribute bottom_garment.



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

def bottom_garment
  @bottom_garment
end

#person_imageObject (readonly)

Returns the value of attribute person_image.



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

def person_image
  @person_image
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



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

def resolution
  @resolution
end

#restore_faceObject (readonly)

Returns the value of attribute restore_face.



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

def restore_face
  @restore_face
end

#task_typeObject (readonly)

Returns the value of attribute task_type.



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

def task_type
  @task_type
end

#top_garmentObject (readonly)

Returns the value of attribute top_garment.



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

def top_garment
  @top_garment
end

Instance Method Details

#body_fieldsObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 21

def body_fields
  compact_hash({
    "task_type" => @task_type,
    "person_image" => @person_image,
    "top_garment" => @top_garment,
    "resolution" => @resolution,
    "restore_face" => @restore_face,
    "bottom_garment" => @bottom_garment,
  })
end

#query_fieldsObject



17
18
19
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_premium_params.rb', line 17

def query_fields
  {}
end