Class: AILabTools::Generated::Params::PortraitFacialFiltersParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image:, resource_type:, strength:) ⇒ PortraitFacialFiltersParams

Returns a new instance of PortraitFacialFiltersParams.



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

def initialize(image:, resource_type:, strength:)
  @image = image
  @resource_type = resource_type
  @strength = strength
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



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

def image
  @image
end

#resource_typeObject (readonly)

Returns the value of attribute resource_type.



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

def resource_type
  @resource_type
end

#strengthObject (readonly)

Returns the value of attribute strength.



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

def strength
  @strength
end

Instance Method Details

#body_fieldsObject



18
19
20
21
22
23
24
# File 'lib/ailabtools/generated/params/portrait_facial_filters_params.rb', line 18

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

#query_fieldsObject



14
15
16
# File 'lib/ailabtools/generated/params/portrait_facial_filters_params.rb', line 14

def query_fields
  {}
end