Class: TesoteSdk::V1::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/tesote_sdk/v1/client.rb

Constant Summary collapse

VERSION_SEGMENT =
'v1'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, **transport_options) ⇒ Client

Returns a new instance of Client.



13
14
15
16
17
18
19
# File 'lib/tesote_sdk/v1/client.rb', line 13

def initialize(api_key:, **transport_options)
  @transport = Transport.new(
    api_key: api_key,
    version_segment: VERSION_SEGMENT,
    **transport_options
  )
end

Instance Attribute Details

#transportObject (readonly)

Returns the value of attribute transport.



11
12
13
# File 'lib/tesote_sdk/v1/client.rb', line 11

def transport
  @transport
end

Instance Method Details

#accountsObject



21
22
23
# File 'lib/tesote_sdk/v1/client.rb', line 21

def accounts
  @accounts ||= Accounts.new(transport)
end

#last_rate_limitObject



33
34
35
# File 'lib/tesote_sdk/v1/client.rb', line 33

def last_rate_limit
  transport.last_rate_limit
end

#last_request_idObject



37
38
39
# File 'lib/tesote_sdk/v1/client.rb', line 37

def last_request_id
  transport.last_request_id
end

#statusObject



29
30
31
# File 'lib/tesote_sdk/v1/client.rb', line 29

def status
  @status ||= Status.new(transport)
end

#transactionsObject



25
26
27
# File 'lib/tesote_sdk/v1/client.rb', line 25

def transactions
  @transactions ||= Transactions.new(transport)
end