Class: RiotLolApi::Model::Spell

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_lol_api/model/spells.rb

Instance Method Summary collapse

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(options = {})
  options.each do |key, value|
    self.class.send(:attr_accessor, key.to_sym)
    instance_variable_set("@#{key}", value)
  end
end