Method: Clashinator::Achievement#initialize
- Defined in:
- lib/clashinator/achievement.rb
#initialize(attributes) ⇒ Achievement
Returns a new instance of Achievement.
7 8 9 10 11 12 13 14 |
# File 'lib/clashinator/achievement.rb', line 7 def initialize(attributes) @name = attributes['name'] @stars = attributes['stars'] @value = attributes['value'] @target = attributes['target'] @info = attributes['info'] @completion_info = attributes['completion_info'] end |