https://github.com/valve/mxmnd
Minimal MaxMind API wrapper for Ruby
https://github.com/valve/mxmnd
geocoding ip-address maxmind maxmind-geoip2-api ruby
Last synced: over 1 year ago
JSON representation
Minimal MaxMind API wrapper for Ruby
- Host: GitHub
- URL: https://github.com/valve/mxmnd
- Owner: Valve
- License: mit
- Created: 2016-10-22T00:35:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T15:54:55.000Z (over 7 years ago)
- Last Synced: 2025-03-08T23:42:36.244Z (over 1 year ago)
- Topics: geocoding, ip-address, maxmind, maxmind-geoip2-api, ruby
- Language: Ruby
- Size: 11.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/Valve/mxmnd)
[](https://codeclimate.com/github/Valve/mxmnd)
[](https://badge.fury.io/rb/mxmnd)
# Mxmnd
Minimalistic MaxMind API wrapper for Ruby.
`Faraday` is the only runtime dependency.
Supports only `#city` API call. API compatible with `Geoip2.city`.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'mxmnd'
```
## Usage
```ruby
Mxmnd.city('8.8.8.8')
```
If you want to use faraday options, you can pass them as a second parameter:
```ruby
Mxmnd.city('8.8.8.8', request: {timeout: 1})
```
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).