Class: RiotLolApi::Model::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_lol_api/models/maps.rb

Instance Method Summary collapse

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(options = {})
  options.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