Class: RiotLolApi::Model::Game

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Game

attr :champion_id, :create_date, :create_date_str, :fellow_players, :game_id, :game_mode, :game_type, :level, :map_id, :spell1, :spell2, :stats, :sub_type, :team_id



10
11
12
13
14
15
# File 'lib/riot_lol_api/model/games.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