Method: Coinbase::Wallet::AsyncClient#initialize

Defined in:
lib/coinbase/wallet/client.rb

#initialize(options = {}) ⇒ AsyncClient

Returns a new instance of AsyncClient.



80
81
82
83
84
85
86
87
# File 'lib/coinbase/wallet/client.rb', line 80

def initialize(options={})
  [ :api_key, :api_secret ].each do |opt|
    raise unless options.has_key? opt
  end
  @api_key = options[:api_key]
  @api_secret = options[:api_secret]
  @api_uri = URI.parse(options[:api_url] || BASE_API_URL)
end