Module: LeonardoAI

Defined in:
lib/leonardoai.rb,
lib/leonardoai/http.rb,
lib/leonardoai/client.rb,
lib/leonardoai/models.rb,
lib/leonardoai/version.rb,
lib/leonardoai/datasets.rb,
lib/leonardoai/variations.rb,
lib/leonardoai/generations.rb

Defined Under Namespace

Modules: HTTP Classes: Client, Configuration, ConfigurationError, Datasets, Error, Generations, Models, Variations

Constant Summary collapse

VERSION =
"0.1.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



48
49
50
# File 'lib/leonardoai.rb', line 48

def self.configuration
  @configuration ||= LeonardoAI::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



52
53
54
# File 'lib/leonardoai.rb', line 52

def self.configure
  yield(configuration)
end