Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuchan/ipcountry
ruby gem for looking up ip address information.
https://github.com/yuchan/ipcountry
Last synced: 4 days ago
JSON representation
ruby gem for looking up ip address information.
- Host: GitHub
- URL: https://github.com/yuchan/ipcountry
- Owner: yuchan
- License: mit
- Created: 2014-11-09T13:44:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T12:37:26.000Z (about 10 years ago)
- Last Synced: 2024-03-23T08:01:55.991Z (10 months ago)
- Language: Ruby
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ipcountry
ruby gem for looking up ip address information.
powered by http://ip-api.com/docs/api:json## Installation
Add this line to your application's Gemfile:
```ruby
gem 'ipcountry'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install ipcountry
## Usage
$ require 'ipcountry'
$ info = Ipcountry::Info.new("ip address")
$ info.country # => "Country name"## Contributing
1. Fork it ( https://github.com/[my-github-username]/ipcountry/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request