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