kickstarter / Ipcat Ruby
Licence: mit
Ruby port of client9/ipcat
Stars: ✭ 136
Programming Languages
ruby
36898 projects - #4 most used programming language
ipcat-ruby
A ruby port of the ipcat library to classify IP addresses from known datacenters
Installation
With bundler:
# In Gemfile
gem 'ipcat'
Or with rubygems:
gem install ipcat
Usage
IPCat.datacenter?(ip_address)
It will return an IPCat::IPRange
if ip_address
is from a known datacenter; nil
otherwise.
For example,
range = IPCat.datacenter?('52.95.252.0') # => instance of IPCat::IPRange
range.name # => 'Amazon AWS'
IPCat.datacenter?('127.0.0.1') # => nil
License
Copyright (c) 2013 Kickstarter, Inc
Released under an MIT License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].