class Amazon::Search::Exchange::Request
Public Instance Methods
search(exchange_id, weight=HEAVY, &block)
click to toggle source
Perform an Exchange search and return an Amazon::Search::Exchange::Response. If a block is given, that Response's @products, which is an Array of Amazon::Exchange::Product objects, will be passed to the block.
Calls superclass method
# File lib/amazon/search/exchange.rb, line 14 def search(exchange_id, weight=HEAVY, &block) # this search type not available for international sites unless @locale == 'us' raise LocaleError, "search type invalid in '#{@locale}' locale" end url = AWS_PREFIX + "?t=%s&ExchangeSearch=%s&f=xml&type=%s&dev-t=%s" type = WEIGHT[weight] super(url % [@id, exchange_id, type, @token], &block) end