Class: AILabTools::Generated::Params::PortraitFacialFiltersParams
- Defined in:
- lib/ailabtools/generated/params/portrait_facial_filters_params.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#strength ⇒ Object
readonly
Returns the value of attribute strength.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, resource_type:, strength:) ⇒ PortraitFacialFiltersParams
constructor
A new instance of PortraitFacialFiltersParams.
- #query_fields ⇒ Object
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
#image ⇒ Object (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_type ⇒ Object (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 |
#strength ⇒ Object (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_fields ⇒ Object
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_fields ⇒ Object
14 15 16 |
# File 'lib/ailabtools/generated/params/portrait_facial_filters_params.rb', line 14 def query_fields {} end |