Class: AILabTools::Generated::Params::PortraitLivePhotosParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image_target:, type: nil) ⇒ PortraitLivePhotosParams

Returns a new instance of PortraitLivePhotosParams.



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

def initialize(image_target:, type: nil)
  @image_target = image_target
  @type = type
end

Instance Attribute Details

#image_targetObject (readonly)

Returns the value of attribute image_target.



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

def image_target
  @image_target
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#body_fieldsObject



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

def body_fields
  compact_hash({
    "image_target" => @image_target,
    "type" => @type,
  })
end

#query_fieldsObject



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

def query_fields
  {}
end