forked from jayfajardo/openlibrary
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9948707
commit 7bae9e6
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
== Openlibrary | ||
|
||
|
||
OPENLIBRARY is a simple wrapper for the Openlibrary REST-API. | ||
|
||
For more information on the REST calls, you can view the api docuemtation at [http://openlibrary.org/developers/api]. | ||
|
||
|
||
== Installation | ||
|
||
The gem is tested against Ruby 1.9.2 and runs smoothly with Rails 3. | ||
|
||
gem install openlibrary | ||
|
||
or in your Gemfile: | ||
|
||
gem 'openlibrary' | ||
|
||
|
||
== Usage | ||
|
||
You can use the +instance+ method to get a proxy-object: | ||
|
||
# just require | ||
require 'openlibrary' | ||
|
||
# create a client | ||
details = Openlibrary::Details | ||
|
||
# lookup an item with the ISBN-10 or ISBN-13 | ||
book = details.search{"0451526538") | ||
|
||
# have a look at the title of the item | ||
book.title | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters