Class: Datahen::Client::ScraperFinisher

Inherits:
Base
  • Object
show all
Defined in:
lib/datahen/client/scraper_finisher.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

#reset(scraper_name, opts = {}) ⇒ HTTParty::Response

Reset finisher on a scraper’s current job.

Parameters:

  • scraper_name (String)

    Scraper name.

  • opts (Hash) (defaults to: {})

    ({}) API custom parameters.

Returns:

  • (HTTParty::Response)


10
11
12
13
# File 'lib/datahen/client/scraper_finisher.rb', line 10

def reset(scraper_name, opts={})
  params = @options.merge(opts)
  self.class.put("/scrapers/#{scraper_name}/current_job/finisher/reset", params)
end