Module: GoGoodreads

Defined in:
lib/go_goodreads.rb,
lib/go_goodreads/book.rb,
lib/go_goodreads/user.rb,
lib/go_goodreads/shelf.rb,
lib/go_goodreads/author.rb,
lib/go_goodreads/config.rb,
lib/go_goodreads/review.rb,
lib/go_goodreads/request.rb,
lib/go_goodreads/resource.rb,
lib/go_goodreads/attributes.rb

Defined Under Namespace

Modules: Attributes, Request, Resource Classes: Author, BadApiKey, Book, Config, Review, Shelf, User

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Object

Allows you to set the Goodreads API key to be used when using the API.

Examples:

GoGoodreads.configure do |config|
  config.api_key = "somesecretapikey"
end

Yields:

  • (config)

    Block that setups the configuration of GoGoodreads.



18
19
20
# File 'lib/go_goodreads.rb', line 18

def self.configure(&block)
  yield GoGoodreads::Config
end