Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

booksr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

booksr

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Booksr

A simple book searcher in Ruby.

Installation

gem install booksr

Usage

books = Booksr.search(query_string, query_type)

query_type can be:

  • :title
  • :author
  • :isbn
  • :keyword

default is :keyword.

query_string of :isbn can be ISBN10 or ISBN13.

Return value is array of Book which can retrieve book information.

Attributes of class Book:

  • title
  • subtitle
  • authors: array
  • publisher
  • published_date
  • description
  • isbn10
  • isbn13
  • page_count
  • lang

Example

require 'booksr'

books = Booksr.search('Ruby on Rails', :title)
book = books[0]

puts book.title
puts book.authors    # authors is a array
puts book.subtitle

FAQs

Package last updated on 25 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc