Class: RiotLolApi::Model::Spell
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Spell
- Defined in:
- lib/riot_lol_api/model/spells.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Spell
constructor
A new instance of Spell.
Constructor Details
#initialize(options = {}) ⇒ Spell
Returns a new instance of Spell.
10 11 12 13 14 15 |
# File 'lib/riot_lol_api/model/spells.rb', line 10 def initialize( = {}) .each do |key, value| self.class.send(:attr_accessor, key.to_sym) instance_variable_set("@#{key}", value) end end |