Class: AILabTools::Generated::Params::ImageAICartoonGeneratorParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::ImageAICartoonGeneratorParams
- Defined in:
- lib/ailabtools/generated/params/image_ai_cartoon_generator_params.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#task_type ⇒ Object
readonly
Returns the value of attribute task_type.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(task_type:, image:, type:) ⇒ ImageAICartoonGeneratorParams
constructor
A new instance of ImageAICartoonGeneratorParams.
- #query_fields ⇒ Object
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
#image ⇒ Object (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_type ⇒ Object (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 |
#type ⇒ Object (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_fields ⇒ Object
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_fields ⇒ Object
14 15 16 |
# File 'lib/ailabtools/generated/params/image_ai_cartoon_generator_params.rb', line 14 def query_fields {} end |