Class: TesoteSdk::V1::Client
- Inherits:
-
Object
- Object
- TesoteSdk::V1::Client
- Defined in:
- lib/tesote_sdk/v1/client.rb
Constant Summary collapse
- VERSION_SEGMENT =
'v1'.freeze
Instance Attribute Summary collapse
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
Instance Method Summary collapse
- #accounts ⇒ Object
-
#initialize(api_key:, **transport_options) ⇒ Client
constructor
A new instance of Client.
- #last_rate_limit ⇒ Object
- #last_request_id ⇒ Object
- #status ⇒ Object
- #transactions ⇒ Object
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 = Transport.new( api_key: api_key, version_segment: VERSION_SEGMENT, ** ) end |
Instance Attribute Details
#transport ⇒ Object (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
#accounts ⇒ Object
21 22 23 |
# File 'lib/tesote_sdk/v1/client.rb', line 21 def accounts @accounts ||= Accounts.new(transport) end |
#last_rate_limit ⇒ Object
33 34 35 |
# File 'lib/tesote_sdk/v1/client.rb', line 33 def last_rate_limit transport.last_rate_limit end |
#last_request_id ⇒ Object
37 38 39 |
# File 'lib/tesote_sdk/v1/client.rb', line 37 def last_request_id transport.last_request_id end |
#status ⇒ Object
29 30 31 |
# File 'lib/tesote_sdk/v1/client.rb', line 29 def status @status ||= Status.new(transport) end |
#transactions ⇒ Object
25 26 27 |
# File 'lib/tesote_sdk/v1/client.rb', line 25 def transactions @transactions ||= Transactions.new(transport) end |