Class: AILabTools::Generated::Params::ImagePhotoEditingParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image:, style:) ⇒ ImagePhotoEditingParams

Returns a new instance of ImagePhotoEditingParams.



8
9
10
11
# File 'lib/ailabtools/generated/params/image_photo_editing_params.rb', line 8

def initialize(image:, style:)
  @image = image
  @style = style
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



7
8
9
# File 'lib/ailabtools/generated/params/image_photo_editing_params.rb', line 7

def image
  @image
end

#styleObject (readonly)

Returns the value of attribute style.



7
8
9
# File 'lib/ailabtools/generated/params/image_photo_editing_params.rb', line 7

def style
  @style
end

Instance Method Details

#body_fieldsObject



17
18
19
20
21
22
# File 'lib/ailabtools/generated/params/image_photo_editing_params.rb', line 17

def body_fields
  compact_hash({
    "image" => @image,
    "style" => @style,
  })
end

#query_fieldsObject



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

def query_fields
  {}
end