Module: XboxLive

Defined in:
lib/xbox-live.rb

Class Method Summary collapse

Class Method Details

.achievements(gamertag, title_id) ⇒ Object



14
15
16
# File 'lib/xbox-live.rb', line 14

def self.achievements gamertag, title_id
  MultiJson.load(Faraday.get("http://www.xboxleaders.com/api/achievements.json?gamertag=#{gamertag}&titleid=#{title_id}").body)
end

.friends(gamertag) ⇒ Object



18
19
20
# File 'lib/xbox-live.rb', line 18

def self.friends gamertag
  MultiJson.load(Faraday.get("http://www.xboxleaders.com/api/friends.json?gamertag=#{gamertag}").body)
end

.games(gamertag) ⇒ Object



10
11
12
# File 'lib/xbox-live.rb', line 10

def self.games gamertag
  MultiJson.load(Faraday.get("http://www.xboxleaders.com/api/games.json?gamertag=#{gamertag}").body)
end

.profile(gamertag) ⇒ Object



6
7
8
# File 'lib/xbox-live.rb', line 6

def self.profile gamertag
  MultiJson.load(Faraday.get("http://www.xboxleaders.com/api/profile.json?gamertag=#{gamertag}").body)
end