Class: XboxLive::GameInfo
- Inherits:
-
Object
- Object
- XboxLive::GameInfo
- 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
-
#gamertag ⇒ Object
Returns the value of attribute gamertag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_played ⇒ Object
Returns the value of attribute last_played.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tile ⇒ Object
Returns the value of attribute tile.
-
#total_achievements ⇒ Object
Returns the value of attribute total_achievements.
-
#total_points ⇒ Object
Returns the value of attribute total_points.
-
#unlocked_achievements ⇒ Object
Returns the value of attribute unlocked_achievements.
-
#unlocked_points ⇒ Object
Returns the value of attribute unlocked_points.
Instance Method Summary collapse
-
#initialize(gamertag, game_id) ⇒ GameInfo
constructor
Create a new GameInfo for the provided player and game.
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
#gamertag ⇒ Object
Returns the value of attribute gamertag.
7 8 9 |
# File 'lib/xbox_live/game_info.rb', line 7 def gamertag @gamertag end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/xbox_live/game_info.rb', line 7 def id @id end |
#last_played ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/xbox_live/game_info.rb', line 7 def name @name end |
#tile ⇒ Object
Returns the value of attribute tile.
7 8 9 |
# File 'lib/xbox_live/game_info.rb', line 7 def tile @tile end |
#total_achievements ⇒ Object
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_points ⇒ Object
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_achievements ⇒ Object
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_points ⇒ Object
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 |