class Amazon::Search::Seller::Request
Public Instance Methods
search(seller_id, weight=HEAVY, page=1, &block)
click to toggle source
Seller profile search. This returns an Amazon::Search::Seller::Response. If a block is given, that Response's @seller, which is an Amazon::Seller object, will be passed to the block.
Calls superclass method
# File lib/amazon/search/seller.rb, line 17 def search(seller_id, weight=HEAVY, page=1, &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&SellerProfile=%s&f=xml" + "&type=%s&dev-t=%s&page=%s" type = WEIGHT[weight] super(url % [@id, seller_id, type, @token, page], &block) end