class Amazon::Search::Blended::Request
Public Instance Methods
search(keyword, weight=HEAVY, &block)
click to toggle source
A blended search returns results across up to 15 of Amazon's product categories in an Amazon::Search::Blended::Response. If a block is given, that Response's @product_lines, which is an Array of Amazon::ProductLine objects, will be passed to the block.
Calls superclass method
# File lib/amazon/search/blended.rb, line 18 def search(keyword, weight=HEAVY, &block) url = AWS_PREFIX + "?t=%s&BlendedSearch=%s&f=xml&type=%s&dev-t=%s" type = WEIGHT[weight] keyword = url_encode(keyword) super(url % [@id, keyword, type, @token], &block) end