lib/answersengine/client/job_log.rb in answersengine-0.4.1 vs lib/answersengine/client/job_log.rb in answersengine-0.5.0

- old
+ new

@@ -1,27 +1,26 @@ module AnswersEngine module Client class JobLog < AnswersEngine::Client::Base def all_job_page_log(job_id, gid, opts={}) - @options.merge!(opts) - self.class.get("/jobs/#{job_id}/pages/#{gid}/log", @options) + params = @options.merge(opts) + self.class.get("/jobs/#{job_id}/pages/#{gid}/log", params) end def scraper_all_job_page_log(scraper_name, gid, opts={}) - @options.merge!(opts) - self.class.get("/scrapers/#{scraper_name}/current_job/pages/#{gid}/log", @options) + params = @options.merge(opts) + self.class.get("/scrapers/#{scraper_name}/current_job/pages/#{gid}/log", params) end def all_job_log(job_id, opts={}) - @options.merge!(opts) - self.class.get("/jobs/#{job_id}/log", @options) + params = @options.merge(opts) + self.class.get("/jobs/#{job_id}/log", params) end def scraper_all_job_log(scraper_name, opts={}) - @options.merge!(opts) - self.class.get("/scrapers/#{scraper_name}/current_job/log", @options) + params = @options.merge(opts) + self.class.get("/scrapers/#{scraper_name}/current_job/log", params) end end end end -