Class: AILabTools::Generated::Params::ImageStyleTransferParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageObject (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

#optionObject (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_fieldsObject



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_fieldsObject



13
14
15
# File 'lib/ailabtools/generated/params/image_style_transfer_params.rb', line 13

def query_fields
  {}
end