Class: TT2::Client
- Includes:
- ServerTime
- Defined in:
- lib/tt2/client.rb,
lib/tt2/client/server_time.rb
Overview
The TT2 API client
Defined Under Namespace
Modules: ServerTime
Instance Attribute Summary
Attributes inherited from API
#ad_id, #auth_token, #created_at, #player_id
Instance Method Summary collapse
-
#initialize(player_id:, auth_token:) ⇒ Client
constructor
A new instance of Client.
Methods included from ServerTime
Methods inherited from API
#get, #post, #query_params, #request_body, #reset_time
Constructor Details
#initialize(player_id:, auth_token:) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/tt2/client.rb', line 10 def initialize(player_id:, auth_token:) @player_id = player_id @auth_token = auth_token reset_time end |