Permalink
Browse files

get image from response

  • Loading branch information...
1 parent fb4287f commit b04f45f17c47d41944c7fb44c5597854723f25b7 @jackdempsey committed Apr 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/asin/item.rb
View
@@ -1,5 +1,6 @@
require 'hashie'
+
module ASIN
# =Item
@@ -42,6 +43,10 @@ def description
(@raw.EditorialReviews.EditorialReview.Content rescue nil) ||
(@raw.ItemAttributes.Feature.join('.') rescue nil)
end
+
+ def image
+ @raw.LargeImage and @raw.LargeImage.URL
+ end
end
end

0 comments on commit b04f45f

Please sign in to comment.