module NgpVan

Constants

MAJOR

Current major release. @return [Integer]

MINOR

Current minor release. @return [Integer]

PATCH

Current patch level. @return [Integer]

VERSION

Full release version. @return [String]

Public Class Methods

client() click to toggle source
# File lib/ngp_van.rb, line 13
def client
  @client ||= NgpVan::Client.new
end
configuration() click to toggle source

The current configuration. @return [NgpVan::Configuration]

# File lib/ngp_van.rb, line 26
def self.configuration
  @configuration ||= Configuration.new
end
configuration=(config) click to toggle source

Set new configuration @param config [NgpVan::Configuration]

# File lib/ngp_van.rb, line 32
def self.configuration=(config)
  @configuration = config
end
configure() { |configuration| ... } click to toggle source

Modify the current configuration @yieldparam [NgpVan::Configuration] config The current NgpVan config “` NgpVan.configure do |config|

config.application_name = 'CroninAndSons'
config.api_key = 'af263f2a-86fd-443b-a1b6-f5b7bce8db30|1'

end “`

# File lib/ngp_van.rb, line 44
def self.configure
  yield configuration
end
method_missing(method_name, *args, &block) click to toggle source

Delegate methods called on NgpVan to the client.

Calls superclass method
# File lib/ngp_van.rb, line 18
def method_missing(method_name, *args, &block)
  return super unless client.respond_to?(method_name)
  client.send(method_name, *args, &block)
end