Class: AnswersEngine::Client::JobStat

Inherits:
Base
  • Object
show all
Defined in:
lib/answersengine/client/job_stat.rb

Instance Method Summary collapse

Methods inherited from Base

#auth_token, #auth_token=, #env_api_url, env_auth_token, #initialize

Constructor Details

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

Instance Method Details

#job_current_stats(job_id) ⇒ Object



5
6
7
# File 'lib/answersengine/client/job_stat.rb', line 5

def job_current_stats(job_id)
  self.class.get("/jobs/#{job_id}/stats/current", @options)
end

#scraper_job_current_stats(scraper_name) ⇒ Object



9
10
11
# File 'lib/answersengine/client/job_stat.rb', line 9

def scraper_job_current_stats(scraper_name)
  self.class.get("/scrapers/#{scraper_name}/current_job/stats/current", @options)
end