Class: Gamertag::Client

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

Methods included from Achievements

#achievements

Methods included from Games

#achievement_count, #games, #potential_achievement_count, #potential_gamerscore

Methods included from Friends

#friends

Methods included from Profile

#profile

Methods included from Connection

#get

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={})
  options = Gamertag.options.merge(opts)
  Configuration::OPTION_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end