lib/kosher/offer.rb in kosher-0.1.6 vs lib/kosher/offer.rb in kosher-0.1.7

- old
+ new

@@ -3,11 +3,12 @@ :seller, :condition, :description, :ships_in, :ships_free, - :cents) + :cents, + :listing_id) def self.build(doc) offer = new offer.seller = Seller.build(doc['Merchant']) @@ -17,9 +18,10 @@ listing = doc['OfferListing'] offer.ships_in = listing['AvailabilityAttributes']['MaximumHours'].to_i offer.ships_free = listing['IsEligibleForSuperSaverShipping'] == '1' offer.cents = listing['Price']['Amount'].to_i + offer.listing_id = listing['OfferListingId'] offer end def kosher?