Valve / mxmnd

Minimal MaxMind API wrapper for Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Code Climate Gem Version

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:

gem 'mxmnd'

Usage

Mxmnd.city('8.8.8.8')

If you want to use faraday options, you can pass them as a second parameter:

Mxmnd.city('8.8.8.8', request: {timeout: 1})

License

The gem is available as open source under the terms of the MIT License.

About

Minimal MaxMind API wrapper for Ruby

License:MIT License


Languages

Language:Ruby 97.8%Language:Shell 2.2%