class RiotLolApi::Model::Map

Public Class Methods

new(options = {}) click to toggle source
# 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