Skip to content

Commit

Permalink
fix doc and add raw example
Browse files Browse the repository at this point in the history
  • Loading branch information
phoet committed Jul 7, 2010
1 parent 0f9487e commit 51315a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.textile
Expand Up @@ -13,8 +13,14 @@ h2. Usage
<pre>
require 'asin'
include ASIN
# use the configure method to setup your api credentials
configure :secret => 'your-secret', :key => 'your-key'
item = lookup '1430218150
# lookup an item with the amazon standard identification number (asin)
item = lookup '1430218150'
# have a look at the title of the item
item.title
=> Learn Objective-C on the Mac (Learn Series)
# access the internal data representation (Hashie::Mash)
item.raw.ItemAttributes.ListPrice.FormattedPrice
=> $39.99
</pre>

0 comments on commit 51315a8

Please sign in to comment.