Class: BnetScraper::Starcraft2::Achievement
- Inherits:
-
Object
- Object
- BnetScraper::Starcraft2::Achievement
- Defined in:
- lib/bnet_scraper/starcraft2/achievement.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#earned ⇒ Object
Returns the value of attribute earned.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Achievement
constructor
A new instance of Achievement.
Constructor Details
#initialize(options = {}) ⇒ Achievement
Returns a new instance of Achievement.
6 7 8 9 10 |
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 6 def initialize = {} .each_key do |key| self.send "#{key}=", [key] end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4 def description @description end |
#earned ⇒ Object
Returns the value of attribute earned.
4 5 6 |
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4 def earned @earned end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4 def title @title end |