Class: Chainalysis::Client

Inherits:
BaseClient show all
Defined in:
lib/chainalysis/client.rb

Overview

Main client class that provides access to both V1 and V2 clients

Constant Summary

Constants inherited from BaseClient

BaseClient::ADMIN_URL, BaseClient::BASE_URL, BaseClient::VERSION

Instance Attribute Summary

Attributes inherited from BaseClient

#adapter, #api_key

Instance Method Summary collapse

Methods inherited from BaseClient

#initialize

Constructor Details

This class inherits a constructor from Chainalysis::BaseClient

Instance Method Details

#v1Object



271
272
273
# File 'lib/chainalysis/client.rb', line 271

def v1
  @v1 ||= V1Client.new(api_key: api_key, adapter: adapter, stubs: @stubs)
end

#v2Object



275
276
277
# File 'lib/chainalysis/client.rb', line 275

def v2
  @v2 ||= V2Client.new(api_key: api_key, adapter: adapter, stubs: @stubs)
end