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