Class: AILabTools::Generated::Params::ImagePhotoToColoringPageParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::ImagePhotoToColoringPageParams
- Defined in:
- lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#image_size ⇒ Object
readonly
Returns the value of attribute image_size.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, prompt: nil, image_size: nil) ⇒ ImagePhotoToColoringPageParams
constructor
A new instance of ImagePhotoToColoringPageParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image:, prompt: nil, image_size: nil) ⇒ ImagePhotoToColoringPageParams
Returns a new instance of ImagePhotoToColoringPageParams.
8 9 10 11 12 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 8 def initialize(image:, prompt: nil, image_size: nil) @image = image @prompt = prompt @image_size = image_size end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 7 def image @image end |
#image_size ⇒ Object (readonly)
Returns the value of attribute image_size.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 7 def image_size @image_size end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 7 def prompt @prompt end |
Instance Method Details
#body_fields ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 18 def body_fields compact_hash({ "image" => @image, "prompt" => @prompt, "image_size" => @image_size, }) end |
#query_fields ⇒ Object
14 15 16 |
# File 'lib/ailabtools/generated/params/image_photo_to_coloring_page_params.rb', line 14 def query_fields {} end |