Class: RiotLolApi::Model::League

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

Instance Method Summary collapse

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