Class: XboxLive::AchievementInfo

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

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#game_idObject

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

#gamertagObject

Returns the value of attribute gamertag.



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

def gamertag
  @gamertag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#pointsObject

Returns the value of attribute points.



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

def points
  @points
end

#tileObject

Returns the value of attribute tile.



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

def tile
  @tile
end

#unlocked_atObject

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