Class: CryptomateApi::Base
- Inherits:
-
Object
- Object
- CryptomateApi::Base
- Includes:
- HTTParty
- Defined in:
- lib/cryptomate_api/base.rb
Direct Known Subclasses
Management::Blockchain, Management::Client, Management::Configuration, Management::Credential, Management::Key, Management::Operation, Mpc::Account, Mpc::Wallet, Payment
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
Initializes the client with the given API key.
Constructor Details
#initialize ⇒ Base
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 |