Class: Datahen::Client::JobLog

Inherits:
Base
  • Object
show all
Defined in:
lib/datahen/client/job_log.rb

Constant Summary

Constants inherited from Base

Base::CHECK_EMPTY_BODY, Base::CHECK_NIL, Base::DEFAULT_RETRY_LIMIT

Instance Method Summary collapse

Methods inherited from Base

#auth_token, #auth_token=, #default_retry_limit, #env_api_url, env_auth_token, env_ignore_ssl, #ignore_ssl, #initialize, #left_merge, random_delay, #retry

Constructor Details

This class inherits a constructor from Datahen::Client::Base

Instance Method Details

#all_job_log(job_id, opts = {}) ⇒ Object



14
15
16
17
# File 'lib/datahen/client/job_log.rb', line 14

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

#all_job_page_log(job_id, gid, opts = {}) ⇒ Object



4
5
6
7
# File 'lib/datahen/client/job_log.rb', line 4

def all_job_page_log(job_id, gid, opts={})
  params = @options.merge(opts)
  self.class.get("/jobs/#{job_id}/pages/#{gid}/log", params)
end

#scraper_all_job_log(scraper_name, opts = {}) ⇒ Object



19
20
21
22
# File 'lib/datahen/client/job_log.rb', line 19

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

#scraper_all_job_page_log(scraper_name, gid, opts = {}) ⇒ Object



9
10
11
12
# File 'lib/datahen/client/job_log.rb', line 9

def scraper_all_job_page_log(scraper_name, gid, opts={})
  params = @options.merge(opts)
  self.class.get("/scrapers/#{scraper_name}/current_job/pages/#{gid}/log", params)
end