Class: Starcraft2::Profile::AchievementItem
- Inherits:
-
Object
- Object
- Starcraft2::Profile::AchievementItem
- Defined in:
- lib/starcraft2/profile/achievement_item.rb
Instance Attribute Summary collapse
-
#achievement_id ⇒ Object
Returns the value of attribute achievement_id.
-
#completion_date ⇒ Object
Returns the value of attribute completion_date.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AchievementItem
constructor
A new instance of AchievementItem.
Constructor Details
#initialize(options = {}) ⇒ AchievementItem
Returns a new instance of AchievementItem.
6 7 8 |
# File 'lib/starcraft2/profile/achievement_item.rb', line 6 def initialize( = {}) Utils.load(self, ) end |
Instance Attribute Details
#achievement_id ⇒ Object
Returns the value of attribute achievement_id.
4 5 6 |
# File 'lib/starcraft2/profile/achievement_item.rb', line 4 def achievement_id @achievement_id end |
#completion_date ⇒ Object
Returns the value of attribute completion_date.
4 5 6 |
# File 'lib/starcraft2/profile/achievement_item.rb', line 4 def completion_date @completion_date end |
Class Method Details
.build(achievements) ⇒ Object
10 11 12 13 14 |
# File 'lib/starcraft2/profile/achievement_item.rb', line 10 def self.build(achievements) achievements.map do |a| new(a) end end |