Class: TT2::Client

Inherits:
API
  • Object
show all
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

Methods included from ServerTime

#server_time

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