Skip to content

yournumberone/ipgeobase

Repository files navigation

Ruby Gem Ruby

Ipgeobase

Welcome to Ipgeobase gem!

Find the company and their geolocation by IP.

Installation

Install via Gemfile:

Add this line to your application's Gemfile:

source "https://rubygems.pkg.github.com/yournumberone" do
  gem "ipgeobase", "0.2.3"
end 

And then execute:

bundle install

Or install it yourself as:

gem install ipgeobase --version "0.1.0" --source "https://rubygems.pkg.github.com/yournumberone"

Usage

    $ ip_meta = Ipgeobase.lookup('8.8.8.8')
    
    $ ip_meta.city # Ashburn
      
    $  ip_meta.country # United States
    
    $ ip_meta.countryCode # US
    
    $ ip_meta.lat # 39.03
    
    $ ip_meta.lon # -77.5
    
    $ ip_meta # full hash
    
    $ ip_meta.timezone # "America/New_York"
    
    $ ip_meta.org #	"Google Public DNS"
    
    $ ip_meta.regionName # "Virginia"
and more

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yournumberone/ipgeobase.

About

Ruby gem 👾

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages