Sha256: 6b7b27509ece7821fbee63c6c45953d967bf7982378799d4fb6083905da93c8c

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

require 'where/base'
require 'where/address'
require 'where/ip_address'

module Where  
  def self.is(address = "")
    address ||= ""
    if address.match(/^(\d{1,3}\.){3}\d{1,3}$/)
      Where::IpAddress.geocode address
    else
      Where::Address.geocode address
    end    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
where-0.0.1 lib/where.rb