Sha256: a5849d87ca3031078cfe8fe0465775fd2c9cbea53abbf2acf0da0222e982c3e3

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

module ISBNdb
  module Api
    class Book
      attr_reader :client

      def initialize(client:)
        @client = client
      end

      def find(isbn)
        @client.request("/book/#{isbn}")
      end

      def batch(query, options = {})
        @client.request("/books/#{query}", options)
      end

      def search(options = {})
        @client.request("/search/books/", options)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
isbndb-ruby-0.1.3 lib/isbndb/api/book.rb
isbndb-ruby-0.1.2 lib/isbndb/api/book.rb
isbndb-ruby-0.1.1 lib/isbndb/api/book.rb
isbndb-ruby-0.1.0 lib/isbndb/api/book.rb