# 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