Sha256: f6a26a2c4da30af72e0b2e0310a80816241a506444f904bc299fb6224a7b1a32

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

module AnswersEngine
  module Client
    class ScraperFinisher < AnswersEngine::Client::Base
      # Reset finisher on a scraper's current job.
      #
      # @param [String] scraper_name Scraper name.
      # @param [Hash] opts ({}) API custom parameters.
      #
      # @return [HTTParty::Response]
      def reset(scraper_name, opts={})
        params = @options.merge(opts)
        self.class.put("/scrapers/#{scraper_name}/current_job/finisher/reset", params)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/client/scraper_finisher.rb
answersengine-0.10.0 lib/answersengine/client/scraper_finisher.rb
answersengine-0.9.1 lib/answersengine/client/scraper_finisher.rb
answersengine-0.9.0 lib/answersengine/client/scraper_finisher.rb