Class: BullionVault::API

Inherits:
Object
  • Object
show all
Includes:
Authentication, Connection, Request
Defined in:
lib/bullion_vault/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



10
11
12
13
14
15
# File 'lib/bullion_vault/api.rb', line 10

def initialize(options={})
  options = BullionVault.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    public_send("#{key}=", options[key])
  end
end