Openbd

Gem Version Build Status

The Ruby library provides a wrapper to the openBD API.

Installation

Add this line to your application's Gemfile:

gem 'openbd'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openbd

Usage

Like this.

require 'openbd'

client = Openbd::Client.new

# get
client.get('978-4-7808-0204-7')

# coverage
client.coverage

Set HTTP_SERVER or http_server as Environment Variable if you'd like to access via proxy server.

export HTTP_PROXY=http://user:pass@host:port
# or
export http_proxy=http://user:pass@host:port

Requirements

  • Ruby(MRI) 2.3.0 or higher

License

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