Sha256: 39c1b51e36478777936c3b662997b1b4fe1ce0f35026b2d94bd29a68ecf57d64

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

module Goodreads
  module Authors
    # Get author details
    #
    def author(id, params={})
      params[:id] = id
      data = request('/author/show', params)
      Hashie::Mash.new(data['author'])
    end

    # Search for an author by name
    #
    def author_by_name(name, params={})
      params[:id] = name
      data = request('/api/author_url', params)
      Hashie::Mash.new(data['author'])
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
goodreads-0.4.2 lib/goodreads/client/authors.rb
goodreads-0.4.1 lib/goodreads/client/authors.rb
goodreads-0.4.0 lib/goodreads/client/authors.rb
goodreads-0.3.0 lib/goodreads/client/authors.rb
goodreads_17up-0.2.2 lib/goodreads/client/authors.rb
goodreads-0.2.2 lib/goodreads/client/authors.rb
goodreads_17up-0.2.1 lib/goodreads/client/authors.rb