Class: RiotLolApi::Model::Map
- Inherits:
-
Object
- Object
- RiotLolApi::Model::Map
- Defined in:
- lib/riot_lol_api/models/maps.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(options = {}) ⇒ Map
Returns a new instance of Map.
4 5 6 7 8 9 10 11 12 |
# File 'lib/riot_lol_api/models/maps.rb', line 4 def initialize( = {}) .each_with_index do |_key, value, i| if i == 0 instance_variable_set('@map_id', value) elsif i == 1 instance_variable_set('@active', value) end end end |