Permalink
Browse files

sometimes price is in lowest new price

  • Loading branch information...
1 parent 907cc63 commit 2434605bf34f717037fd9889dfc6a90d851e34c5 @jackdempsey committed May 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/asin/item.rb
View
4 lib/asin/item.rb
@@ -28,7 +28,9 @@ def title
end
def cents
- price_container = @raw.ItemAttributes!.ListPrice || @raw.OfferSummary!.LowestUsedPrice
+ price_container = @raw.ItemAttributes!.ListPrice ||
+ @raw.OfferSummary!.LowestUsedPrice ||
+ @raw.OfferSummary!.LowestNewPrice
if price_container and amount = price_container.Amount
amount.to_i
end

0 comments on commit 2434605

Please sign in to comment.