Class: RiotLolApi::Model::Game
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Game
- Defined in:
- lib/riot_lol_api/model/games.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Game
constructor
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.
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( = {}) .each do |key, value| self.class.send(:attr_accessor, key.to_sym) instance_variable_set("@#{key}", value) end end |