Module: OpenRouter

Defined in:
lib/open_router.rb,
lib/open_router/http.rb,
lib/open_router/client.rb,
lib/open_router/version.rb

Defined Under Namespace

Modules: HTTP Classes: Client, Configuration, ConfigurationError, Error, ServerError

Constant Summary collapse

VERSION =
"0.3.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



54
55
56
# File 'lib/open_router.rb', line 54

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

Class Method Details

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

Yields:



58
59
60
# File 'lib/open_router.rb', line 58

def self.configure
  yield(configuration)
end