Sha256: 40df0a83ba5c661e075e505bee2f7151d597ff787742df0863bd223c0b6881b4
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
module Fassbinder class Request < Sucker::Request def initialize(args = {}) super self.<<({ 'Operation' => 'ItemLookup', 'ItemLookup.Shared.IdType' => 'ASIN', 'ItemLookup.Shared.Condition' => 'All', 'ItemLookup.Shared.MerchantId' => 'All', 'ItemLookup.Shared.ResponseGroup' => ['OfferFull', 'SalesRank'] }) end def batchify(asins) self.<<({ 'ItemLookup.1.ItemId' => asins[0, 10] }) self.<<({ 'ItemLookup.2.ItemId' => asins[10, 10] }) if asins.size > 10 end def get ResponseWrapper.new(super, locale) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fassbinder-0.0.2 | lib/fassbinder/request.rb |