Skip to content

About

An IP address parser in Ruby using the datacenters list from IPCat.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Datacenter Lookup

Datacenter Lookup is an IP address parser in Ruby using the datacenters list from IPCat.

Installation:

gem 'datacenter_lookup', '~> 0.1.3'

Then, look up your IP address like so:

irb
require 'datacenter_lookup'
dc = DatacenterLookup::Parser.new()
ip = "5.79.26.0"
puts dc.find(ip) # => "http://www.rackspace.com/"
ip2 = "1.1.1.1"
puts dc.find(ip2) # => nil

About

An IP address parser in Ruby using the datacenters list from IPCat.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages