lib/goodreads/client/authors.rb in goodreads-0.8.0 vs lib/goodreads/client/authors.rb in goodreads-0.9.0
- old
+ new
@@ -6,9 +6,17 @@
params[:id] = id
data = request("/author/show", params)
Hashie::Mash.new(data["author"])
end
+ # Get an author's books
+ #
+ def author_books(id, params = {})
+ params[:id] = id
+ data = request("/author/list", params)
+ Hashie::Mash.new(data["author"])
+ end
+
# Search for an author by name
#
def author_by_name(name, params = {})
params[:id] = name
name_encoded = URI.encode(name)