lib/sightstone/modules/summoner_module.rb
def names(ids, optional={})
    region = optional[:region] || @sightstone.region
    ids = ids.join(',')
    uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.3/summoner/#{ids}/name"
    response = _get_api_response(uri)
    _parse_response(response) { |resp|
      data = JSON.parse(resp)

      names_hash = Hash.new
      data.each do |id, name|
        names_hash[id.to_i] = name
      end
      if block_given?
        yield names_hash
      else
        return names_hash
      end
    }
  end
def names(ids, optional={})
    region = optional[:region] || @sightstone.region
    ids = ids.join(',')
    uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.3/summoner/#{ids}/name"
    response = _get_api_response(uri)
    _parse_response(response) { |resp|
      data = JSON.parse(resp)

      names_hash = Hash.new
      data.each do |id, name|
        names_hash[id.to_i] = name
      end
      if block_given?
        yield names_hash
      else
        return names_hash
      end
    }
  end
returns the names for the ids
 @param ids [Array<Numeric>] ids
 @param optional [Hash<Symbol, String>] optional arguments: :region => replaces default region
 @return [Hash<Numeric, String>] a hash matching each id to the summoners name