Sha256: 33232864bbdcc8be122ff12f24dd573725dda1705163dbe2c346873cf18dbe3a
Contents?: true
Size: 480 Bytes
Versions: 6
Compression:
Stored size: 480 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 name_encoded = URI.encode(name) data = request("/api/author_url/#{name_encoded}", params) Hashie::Mash.new(data["author"]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems