Sha256: b73160169c6a19b91a534bc427bf3bca1b38e2e3f5fde3674b303cd0b0867cd2

Contents?: true

Size: 765 Bytes

Versions: 7

Compression:

Stored size: 765 Bytes

Contents

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)
      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)
      end

      def all_job_log(job_id, opts={})
        @options.merge!(opts)
        self.class.get("/jobs/#{job_id}/log", @options)
      end

      def scraper_all_job_log(scraper_name, opts={})
        @options.merge!(opts)
        self.class.get("/scrapers/#{scraper_name}/current_job/log", @options)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
answersengine-0.4.1 lib/answersengine/client/job_log.rb
answersengine-0.4.0 lib/answersengine/client/job_log.rb
answersengine-0.3.3 lib/answersengine/client/job_log.rb
answersengine-0.3.2 lib/answersengine/client/job_log.rb
answersengine-0.3.1 lib/answersengine/client/job_log.rb
answersengine-0.3.0 lib/answersengine/client/job_log.rb
answersengine-0.2.33 lib/answersengine/client/job_log.rb