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
-
.configuration ⇒ Namely::Configuration
Namely’s current configuration.
-
.configuration=(config) ⇒ Object
Set Namely’s configuration.
-
.configure {|config| ... } ⇒ Object
Modify Namely’s current configuration “‘ Namely.configure do |config| config.retries = 3 end “`.
Class Method Details
.configuration ⇒ Namely::Configuration
Returns Namely’s current configuration.
35 36 37 |
# File 'lib/namely/configuration.rb', line 35 def self.configuration @configuration ||= Configuration.new end |
.configuration=(config) ⇒ Object
Set Namely’s configuration
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 “‘
52 53 54 |
# File 'lib/namely/configuration.rb', line 52 def self.configure yield configuration end |