Class: AILabTools::Generated::Params::ImageAiObjectReplacerParams
- Defined in:
- lib/ailabtools/generated/params/image_ai_object_replacer_params.rb
Instance Attribute Summary collapse
-
#custom_prompt ⇒ Object
readonly
Returns the value of attribute custom_prompt.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#seed ⇒ Object
readonly
Returns the value of attribute seed.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, mask:, custom_prompt: nil, steps: nil, scale: nil, seed: nil) ⇒ ImageAiObjectReplacerParams
constructor
A new instance of ImageAiObjectReplacerParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image:, mask:, custom_prompt: nil, steps: nil, scale: nil, seed: nil) ⇒ ImageAiObjectReplacerParams
Returns a new instance of ImageAiObjectReplacerParams.
8 9 10 11 12 13 14 15 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 8 def initialize(image:, mask:, custom_prompt: nil, steps: nil, scale: nil, seed: nil) @image = image @mask = mask @custom_prompt = custom_prompt @steps = steps @scale = scale @seed = seed end |
Instance Attribute Details
#custom_prompt ⇒ Object (readonly)
Returns the value of attribute custom_prompt.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def custom_prompt @custom_prompt end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def image @image end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def mask @mask end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def scale @scale end |
#seed ⇒ Object (readonly)
Returns the value of attribute seed.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def seed @seed end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 7 def steps @steps end |
Instance Method Details
#body_fields ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 21 def body_fields compact_hash({ "image" => @image, "mask" => @mask, "custom_prompt" => @custom_prompt, "steps" => @steps, "scale" => @scale, "seed" => @seed, }) end |
#query_fields ⇒ Object
17 18 19 |
# File 'lib/ailabtools/generated/params/image_ai_object_replacer_params.rb', line 17 def query_fields {} end |