Class: Gamertag::Client
- Inherits:
-
Object
- Object
- Gamertag::Client
- Includes:
- Achievements, Friends, Games, Profile, Connection
- Defined in:
- lib/gamertag/client.rb,
lib/gamertag/client/games.rb,
lib/gamertag/client/friends.rb,
lib/gamertag/client/profile.rb,
lib/gamertag/client/achievements.rb
Defined Under Namespace
Modules: Achievements, Friends, Games, Profile
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Achievements
Methods included from Games
#achievement_count, #games, #potential_achievement_count, #potential_gamerscore
Methods included from Friends
Methods included from Profile
Methods included from Connection
Constructor Details
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 |
# File 'lib/gamertag/client.rb', line 12 def initialize(opts={}) = Gamertag..merge(opts) Configuration::OPTION_KEYS.each do |key| send("#{key}=", [key]) end end |