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