lib/answersengine/client/scraper_exporter.rb in answersengine-0.4.1 vs lib/answersengine/client/scraper_exporter.rb in answersengine-0.5.0
- old
+ new
@@ -1,14 +1,14 @@
module AnswersEngine
module Client
class ScraperExporter < AnswersEngine::Client::Base
def all(scraper_name, opts={})
- self.class.get("/scrapers/#{scraper_name}/exporters", @options)
+ params = @options.merge(opts)
+ self.class.get("/scrapers/#{scraper_name}/exporters", params)
end
def find(scraper_name, exporter_name)
self.class.get("/scrapers/#{scraper_name}/exporters/#{exporter_name}", @options)
end
end
end
end
-