Class: AILabTools::Generated::Params::ImageAICartoonGeneratorParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_type:, image:, type:) ⇒ ImageAICartoonGeneratorParams

Returns a new instance of ImageAICartoonGeneratorParams.



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

def initialize(task_type:, image:, type:)
  @task_type = task_type
  @image = image
  @type = type
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



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

def image
  @image
end

#task_typeObject (readonly)

Returns the value of attribute task_type.



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

def task_type
  @task_type
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#body_fieldsObject



18
19
20
21
22
23
24
# File 'lib/ailabtools/generated/params/image_ai_cartoon_generator_params.rb', line 18

def body_fields
  compact_hash({
    "task_type" => @task_type,
    "image" => @image,
    "type" => @type,
  })
end

#query_fieldsObject



14
15
16
# File 'lib/ailabtools/generated/params/image_ai_cartoon_generator_params.rb', line 14

def query_fields
  {}
end