Class: Olibrary::Client

Inherits:
Object
  • Object
show all
Includes:
Authors, Books, Editions, History, Login, Recent, Request, Save, Search
Defined in:
lib/olibrary/client.rb

Constant Summary

Constants included from Request

Request::API_URL

Instance Method Summary collapse

Methods included from Save

#save

Methods included from Login

#login

Methods included from Search

#search

Methods included from Editions

#editions

Methods included from Recent

#recent

Methods included from History

#rev_history

Methods included from Authors

#author

Methods included from Books

#book, #book_by_isbn, #book_by_lccn, #book_by_oclc

Constructor Details

#initialize(options = {}) ⇒ Client

Initialize an Olibrary::Client instance



25
26
27
28
29
# File 'lib/olibrary/client.rb', line 25

def initialize(options={})
  unless options.kind_of?(Hash)
    raise ArgumentError, "Options hash required."
  end
end