Module: BullionVault

Extended by:
Configuration
Defined in:
lib/bullion_vault.rb,
lib/bullion_vault/api.rb,
lib/bullion_vault/error.rb,
lib/bullion_vault/client.rb,
lib/bullion_vault/request.rb,
lib/bullion_vault/version.rb,
lib/bullion_vault/connection.rb,
lib/bullion_vault/client/login.rb,
lib/bullion_vault/configuration.rb,
lib/bullion_vault/authentication.rb,
lib/bullion_vault/client/view_market.rb,
lib/bullion_vault/client/view_balance.rb

Defined Under Namespace

Modules: Authentication, Configuration, Connection, Request Classes: API, BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, InvalidCookie, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
'0.1.0'.freeze

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_COOKIE, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_USER_LOGIN, Configuration::DEFAULT_USER_PASSWORD, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

authenticate, configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object



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

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

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



15
16
17
18
# File 'lib/bullion_vault.rb', line 15

def self.method_missing(method, *args, &block)
  return super if ! client.respond_to?(method)
  client.public_send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/bullion_vault.rb', line 20

def self.respond_to?(method)
  return client.respond_to?(method) || super
end