Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eftakhairul/gisbn
It fetches all book information by ISBN number based on Google Book API
https://github.com/eftakhairul/gisbn
gisbn isbn ruby ruby-gem
Last synced: about 1 month ago
JSON representation
It fetches all book information by ISBN number based on Google Book API
- Host: GitHub
- URL: https://github.com/eftakhairul/gisbn
- Owner: eftakhairul
- License: mit
- Created: 2014-09-17T15:43:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T18:06:58.000Z (over 3 years ago)
- Last Synced: 2024-11-10T00:32:51.394Z (2 months ago)
- Topics: gisbn, isbn, ruby, ruby-gem
- Language: Ruby
- Size: 29.3 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gisbn GEM [![Build Status](https://travis-ci.org/eftakhairul/gisbn.svg?branch=master)](https://travis-ci.org/eftakhairul/gisbn) [![GitHub issues](https://img.shields.io/github/issues/eftakhairul/gisbn.svg)](https://github.com/eftakhairul/gisbn/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/eftakhairul/gisbn/master/LICENSE.txt)
It fetches book's information by ISBN number based on Google Book API.
- Easy to get all information by ISBN
- Structure dataYou don't have to call manually Google API with ISBN number. This gem will do everything for you.
### Version
0.0.1### Installation
Add this line to your application's Gemfile:```ruby
gem 'gisbn'
```And then execute:
```sh
$ bundle
```Or install it yourself as globally:
```sh
gem install gisbn
```## Examples
book = Gisbn::Book.new "0262033844", "AIzaSyDKepjfaVBRcgsnPALw5s2UNyfOk-1FHUU", "ca"book.title
#=> "Introduction to Algorithms"book.description
#=> "A new edition of the essential text and professional reference, with substantial newmaterial on such topics as vEB trees, multithreaded algorithms, dynamic programming, and edge-baseflow."book.publisher
#=> "MIT Press"book.published_date
#=>book.isbn_10
#=> 0262033844book.isbn_13
#=> 9780262033848book.thumbnail
#=> http://books.google.com/books/content?id=i-bUBQAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_apibook.preview
#=> http://books.google.ca/books?id=i-bUBQAAQBAJ&printsec=frontcover&dq=isbn:0262033844&hl=&cd=1&source=gbs_apibook.gisbn.isbn = 9780321573513
book.fetch.title => "Algorithms"## Methods
title >> Returns Book's title as string
description >> Returns the description of book as string
isbn(isbn_number) >> Set new isbn
fetch >> Call to Google Book API and process book information on provided ISBN
authors >> Return authors' name as comma separated as string
authors_as_array >> Return authors' name as ruby array. If no book is associated with ISBN number,
then it return empty array
publisher >> Return publisher name as string
isbn_10 >> Return 10 digit ISBN numbers as string
isbn_13 >> Return 13 digit ISBN numbers as string
categories >> Return category names as comma separated as string
categories_as_array >> Return category names as ruby array. If no book is associated with ISBN number,
then it return empty array
thumbnail_small >> Return the link of small thumnail
thumbnail >> Return the link of standard thumnail
preview_link >> Return the link for previewing the book
page_count >> Return page count as integer
published_date >> Return the published date as Ruby object### Development
Want to contribute? Great!
1. Fork it ( https://github.com/eftakhairul/gisbn/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull RequestAuthor
-----------
[Eftakhairul Islam](https://eftakhairul.com)Contributors
-----------
[Matt Seeberger](https://github.com/thebeardedgeek)License
----
MIT