lib/goodreads/client/authors.rb in goodreads-0.2.1 vs lib/goodreads/client/authors.rb in goodreads-0.2.2
- old
+ new
@@ -5,7 +5,15 @@
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