Class: XboxLive::GameInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/xbox_live/game_info.rb

Overview

Each GameInfo tracks information about a player’s progress in a specific game.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gamertag, game_id) ⇒ GameInfo

Create a new GameInfo for the provided player and game.



11
12
13
14
# File 'lib/xbox_live/game_info.rb', line 11

def initialize(gamertag, game_id)
  @gamertag = gamertag
  @id = game_id
end

Instance Attribute Details

#gamertagObject

Returns the value of attribute gamertag.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def gamertag
  @gamertag
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def id
  @id
end

#last_playedObject

Returns the value of attribute last_played.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def last_played
  @last_played
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def name
  @name
end

#tileObject

Returns the value of attribute tile.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def tile
  @tile
end

#total_achievementsObject

Returns the value of attribute total_achievements.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def total_achievements
  @total_achievements
end

#total_pointsObject

Returns the value of attribute total_points.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def total_points
  @total_points
end

#unlocked_achievementsObject

Returns the value of attribute unlocked_achievements.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def unlocked_achievements
  @unlocked_achievements
end

#unlocked_pointsObject

Returns the value of attribute unlocked_points.



7
8
9
# File 'lib/xbox_live/game_info.rb', line 7

def unlocked_points
  @unlocked_points
end