Class: LeonardoAI::Variations
- Inherits:
-
Object
- Object
- LeonardoAI::Variations
- Defined in:
- lib/leonardoai/variations.rb
Instance Method Summary collapse
-
#create_unzoom(parameters: {}) ⇒ Object
params: string|null, isVariation: boolean|null.
-
#create_upscale(parameters: {}) ⇒ Object
params: string|null.
- #get_variation_by_id(id:) ⇒ Object
-
#initialize(client: nil) ⇒ Variations
constructor
A new instance of Variations.
Constructor Details
#initialize(client: nil) ⇒ Variations
Returns a new instance of Variations.
3 4 5 |
# File 'lib/leonardoai/variations.rb', line 3 def initialize(client: nil) @client = client end |
Instance Method Details
#create_unzoom(parameters: {}) ⇒ Object
params: string|null, isVariation: boolean|null
8 9 10 |
# File 'lib/leonardoai/variations.rb', line 8 def create_unzoom(parameters: {}) @client.json_post(path: "/variations/unzoom", parameters: parameters) end |
#create_upscale(parameters: {}) ⇒ Object
params: string|null
13 14 15 |
# File 'lib/leonardoai/variations.rb', line 13 def create_upscale(parameters: {}) @client.json_post(path: "/variations/upscale", parameters: parameters) end |
#get_variation_by_id(id:) ⇒ Object
17 18 19 |
# File 'lib/leonardoai/variations.rb', line 17 def get_variation_by_id(id:) @client.get(path: "/variations/#{id}") end |