Class: AILabTools::Generated::Params::PortraitTryOnClothesParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_type:, person_image:, clothes_image:, clothes_type:) ⇒ PortraitTryOnClothesParams

Returns a new instance of PortraitTryOnClothesParams.



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

def initialize(task_type:, person_image:, clothes_image:, clothes_type:)
  @task_type = task_type
  @person_image = person_image
  @clothes_image = clothes_image
  @clothes_type = clothes_type
end

Instance Attribute Details

#clothes_imageObject (readonly)

Returns the value of attribute clothes_image.



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

def clothes_image
  @clothes_image
end

#clothes_typeObject (readonly)

Returns the value of attribute clothes_type.



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

def clothes_type
  @clothes_type
end

#person_imageObject (readonly)

Returns the value of attribute person_image.



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

def person_image
  @person_image
end

#task_typeObject (readonly)

Returns the value of attribute task_type.



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

def task_type
  @task_type
end

Instance Method Details

#body_fieldsObject



19
20
21
22
23
24
25
26
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_params.rb', line 19

def body_fields
  compact_hash({
    "task_type" => @task_type,
    "person_image" => @person_image,
    "clothes_image" => @clothes_image,
    "clothes_type" => @clothes_type,
  })
end

#query_fieldsObject



15
16
17
# File 'lib/ailabtools/generated/params/portrait_try_on_clothes_params.rb', line 15

def query_fields
  {}
end