require 'amazon/search' include Amazon::Search def runmoviesearch req = Request.new(DEV_TOKEN) testmovie = @a_moviefilename s = ['keyword_search', "#{testmovie}", 'video', LITE, 'Name'] s.pop # parse and display the results of each search response = req.send(*s) { |prod| @moviesearchdisplay = prod, '' } # printf("Arguments returned from search were:\n\n%s\n", response.args.inspect) end