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