Sha256: a99c6fce5bbb3e854cd4b5fa3e54a42c30f2150e7ac7c06341857bc33aa90a7d

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

module ISBNdb
  module Api
    class Publisher
      attr_reader :client

      def initialize(client:)
        @client = client
      end

      def find(name)
        @client.request("/publisher/#{name}")
      end

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

      def search(options = {})
        @client.request("/search/publishers/", 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/publisher.rb
isbndb-ruby-0.1.2 lib/isbndb/api/publisher.rb
isbndb-ruby-0.1.1 lib/isbndb/api/publisher.rb
isbndb-ruby-0.1.0 lib/isbndb/api/publisher.rb