Module: Namely

Defined in:
lib/namely.rb,
lib/namely/model.rb,
lib/namely/version.rb,
lib/namely/collection.rb,
lib/namely/connection.rb,
lib/namely/exceptions.rb,
lib/namely/authenticator.rb,
lib/namely/configuration.rb,
lib/namely/resource_gateway.rb

Defined Under Namespace

Classes: Authenticator, Collection, Configuration, Connection, Error, FailedRequestError, Model, NoSuchModelError, ResourceGateway

Constant Summary collapse

VERSION =
"0.2.4"

Class Method Summary collapse

Class Method Details

.configurationNamely::Configuration

Returns Namely’s current configuration.

Returns:



35
36
37
# File 'lib/namely/configuration.rb', line 35

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

.configuration=(config) ⇒ Object

Set Namely’s configuration

Parameters:



41
42
43
# File 'lib/namely/configuration.rb', line 41

def self.configuration=(config)
  @configuration = config
end

.configure {|config| ... } ⇒ Object

Modify Namely’s current configuration “‘ Namely.configure do |config|

config.retries = 3

end “‘

Yield Parameters:



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

def self.configure
  yield configuration
end