class ISBNdb::Api::Author

Attributes

client[R]

Public Class Methods

new(client:) click to toggle source
# File lib/isbndb/api/author.rb, line 6
def initialize(client:)
  @client = client
end

Public Instance Methods

batch(query, options = {}) click to toggle source
# File lib/isbndb/api/author.rb, line 14
def batch(query, options = {})
  @client.request("/authors/#{query}", options)
end
find(name, options = {}) click to toggle source
# File lib/isbndb/api/author.rb, line 10
def find(name, options = {})
  @client.request("/author/#{name}", options)
end