Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T15:54:55.000Z (about 6 years ago)
- Last Synced: 2024-10-11T20:16:07.814Z (2 months ago)
- Topics: geocoding, ip-address, maxmind, maxmind-geoip2-api, ruby
- Language: Ruby
- Size: 11.7 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/Valve/mxmnd.svg?branch=master)](https://travis-ci.org/Valve/mxmnd)
[![Code Climate](https://codeclimate.com/github/Valve/mxmnd/badges/gpa.svg)](https://codeclimate.com/github/Valve/mxmnd)
[![Gem Version](https://badge.fury.io/rb/mxmnd.svg)](https://badge.fury.io/rb/mxmnd)
# MxmndMinimalistic 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).