Module: SBA

Extended by:
Configuration
Defined in:
lib/sba.rb,
lib/sba/client.rb,
lib/sba/version.rb,
lib/sba/client/data.rb,
lib/sba/client/urls.rb,
lib/sba/client/loans.rb,
lib/sba/client/sites.rb,
lib/sba/configuration.rb,
lib/sba/client/request.rb,
lib/sba/client/licenses.rb,
lib/sba/client/connection.rb

Defined Under Namespace

Modules: Configuration Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
"0.0.1"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ SBA::Client

Alias for SBA::Client.new

Returns:



11
12
13
# File 'lib/sba.rb', line 11

def self.client(options={})
  SBA::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to SBA::Client



16
17
18
19
# File 'lib/sba.rb', line 16

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/sba.rb', line 21

def self.respond_to?(method, include_private=false)
  client.respond_to?(method, include_private) || super(method, include_private)
end