Class: Chainalysis::BaseClient
- Inherits:
-
Object
- Object
- Chainalysis::BaseClient
- Defined in:
- lib/chainalysis/client.rb
Overview
Base client class handling common functionality
Constant Summary collapse
- BASE_URL =
'https://api.chainalysis.com/api/kyt'
- ADMIN_URL =
'https://api.chainalysis.com/admin'
- VERSION =
'0.2.0'
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_key:, adapter: Faraday.default_adapter, stubs: nil) ⇒ BaseClient
constructor
A new instance of BaseClient.
Constructor Details
#initialize(api_key:, adapter: Faraday.default_adapter, stubs: nil) ⇒ BaseClient
Returns a new instance of BaseClient.
22 23 24 25 26 |
# File 'lib/chainalysis/client.rb', line 22 def initialize(api_key:, adapter: Faraday.default_adapter, stubs: nil) @api_key = api_key @adapter = adapter @stubs = stubs end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
20 21 22 |
# File 'lib/chainalysis/client.rb', line 20 def adapter @adapter end |
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
20 21 22 |
# File 'lib/chainalysis/client.rb', line 20 def api_key @api_key end |