Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 869 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 869 Bytes

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.