Skip to content

Valve/mxmnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.