Class: XboxLive::AchievementInfo
- Inherits:
-
Object
- Object
- XboxLive::AchievementInfo
- Defined in:
- lib/xbox_live/achievement_info.rb
Overview
Each AchievementInfo tracks information about a player’s progress in a specific achievement.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#game_id ⇒ Object
Returns the value of attribute game_id.
-
#gamertag ⇒ Object
Returns the value of attribute gamertag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#points ⇒ Object
Returns the value of attribute points.
-
#tile ⇒ Object
Returns the value of attribute tile.
-
#unlocked_at ⇒ Object
Returns the value of attribute unlocked_at.
Instance Method Summary collapse
-
#initialize(gamertag, game_id, achievement_id) ⇒ AchievementInfo
constructor
Create a new AchievementInfo for the provided player and game.
Constructor Details
#initialize(gamertag, game_id, achievement_id) ⇒ AchievementInfo
Create a new AchievementInfo for the provided player and game.
10 11 12 13 14 |
# File 'lib/xbox_live/achievement_info.rb', line 10 def initialize(gamertag, game_id, achievement_id) @gamertag = gamertag @game_id = game_id @id = achievement_id end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def description @description end |
#game_id ⇒ Object
Returns the value of attribute game_id.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def game_id @game_id end |
#gamertag ⇒ Object
Returns the value of attribute gamertag.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def gamertag @gamertag end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def name @name end |
#points ⇒ Object
Returns the value of attribute points.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def points @points end |
#tile ⇒ Object
Returns the value of attribute tile.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def tile @tile end |
#unlocked_at ⇒ Object
Returns the value of attribute unlocked_at.
7 8 9 |
# File 'lib/xbox_live/achievement_info.rb', line 7 def unlocked_at @unlocked_at end |