class Geocoder::Lookup::Geoip2

def results(query)

def results(query)
  return [] unless configuration[:file]
  if @gem_name == 'hive_geoip2'
    result = Hive::GeoIP2.lookup(query.to_s, configuration[:file].to_s)
  else
    result = MaxMindDB.new(configuration[:file].to_s).lookup(query.to_s)
  end
  result.nil? ? [] : [result]
end