Project

open_bd

0.0
No release in over 3 years
Low commit activity in last 3 years
An API client library for openBD API, written in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
>= 12.3.3
~> 3.0

Runtime

 Project Readme

OpenBD

An API client library for openBD API, written in Ruby.

Please refer to the following for more information

openBD

Installation

Add this line to your application's Gemfile:

gem 'open_bd'

And then execute:

$ bundle

Or install it yourself as:

$ gem install open_bd

Usage

client = OpenBD::Client.new
# Pass the value of isbn to isbns
res = client.search(isbns: [])

res.empty?
res.body
res.status

# [OpenBD::Resource]
res.resources.each do |resource|
  res.author
  res.content
  res.content_detail
  res.contributors       # [OpenBD::Contributor]
  res.cover_image
  res.hastameshiyomi
  res.height
  res.isbn
  res.main_title
  res.paper_size
  res.paper_size_detail
  res.publisher
  res.release_date
  res.sub_title
  res.table_of_contents
  res.title
  res.width
end

# Get openbd coverage
client.coverage

License

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