Class: Starcraft2::Profile::Achievements

Inherits:
Object
  • Object
show all
Defined in:
lib/starcraft2/profile/achievements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Achievements

Returns a new instance of Achievements.



6
7
8
# File 'lib/starcraft2/profile/achievements.rb', line 6

def initialize(options = {})
  Utils.load(self, options, {:points => Points}, {:achievements => AchievementItem})
end

Instance Attribute Details

#achievementsObject

Returns the value of attribute achievements.



4
5
6
# File 'lib/starcraft2/profile/achievements.rb', line 4

def achievements
  @achievements
end

#pointsObject

Returns the value of attribute points.



4
5
6
# File 'lib/starcraft2/profile/achievements.rb', line 4

def points
  @points
end