Class: PUBG::Client
- Inherits:
-
Object
- Object
- PUBG::Client
- Includes:
- Match, Player, Seasons, Status, Telemetry, Configurable, Connection
- Defined in:
- lib/pubg/client.rb,
lib/pubg/client/match.rb,
lib/pubg/client/player.rb,
lib/pubg/client/status.rb,
lib/pubg/client/seasons.rb,
lib/pubg/client/telemetry.rb
Overview
Client for PUBG API
Defined Under Namespace
Modules: Match, Player, Seasons, Status, Telemetry
Instance Attribute Summary
Attributes included from Configurable
#access_token, #api_endpoint, #connection_options, #region
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Telemetry
Methods included from Status
Methods included from Seasons
Methods included from Player
Methods included from Match
Methods included from Connection
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
21 22 23 24 25 |
# File 'lib/pubg/client.rb', line 21 def initialize( = {}) PUBG::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || PUBG.instance_variable_get(:"@#{key}")) end end |