Class: CryptomateApi::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/cryptomate_api/base.rb

Instance Method Summary collapse

Constructor Details

#initializeBase

Initializes the client with the given API key



10
11
12
13
14
15
# File 'lib/cryptomate_api/base.rb', line 10

def initialize
  CryptomateApi.configuration ||= CryptomateApi::Configuration.new
  @api_key = CryptomateApi.configuration.api_key
  self.class.base_uri CryptomateApi.configuration.base_uri
  self.class.headers 'x-api-key' => @api_key
end