Sha256: 5f61c37c4f3a91d20a5b7530eabf0d8e14006a6011950583ad73e51cf0f27338
Contents?: true
Size: 641 Bytes
Versions: 6
Compression:
Stored size: 641 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 Response.new(super, locale) end end end
Version data entries
6 entries across 6 versions & 1 rubygems