lib/fassbinder/response.rb in fassbinder-0.0.3 vs lib/fassbinder/response.rb in fassbinder-0.0.4
- old
+ new
@@ -10,9 +10,10 @@
# And I don't believe that melodramatic feelings are laughable -
# they should be taken absolutely seriously.
def snapshots
@response.map('Item') do |doc|
Kosher::Snapshot.new(
+ 'amazon.' + Sucker::Request::HOSTS[@locale].match(/[^.]+$/).to_s,
nil,
doc['ASIN'],
doc['SalesRank'].to_i,
doc['Offers']['TotalOffers'].to_i,
[doc['Offers']['Offer']].flatten.compact.map do |doc|