Sha256: 750a9a4196318d9744a5d582d16945ccce013c04dcbf67ca7399cc9acb7d2a01

Contents?: true

Size: 608 Bytes

Versions: 15

Compression:

Stored size: 608 Bytes

Contents

module AnswersEngine
  module Client
    class ScraperJobOutput < AnswersEngine::Client::Base
      def find(scraper_name, collection, id)
        self.class.get("/scrapers/#{scraper_name}/current_job/output/collections/#{collection}/records/#{id}", @options)
      end

      def all(scraper_name, collection = 'default')

        self.class.get("/scrapers/#{scraper_name}/current_job/output/collections/#{collection}/records", @options)
      end

      def collections(scraper_name)
        self.class.get("/scrapers/#{scraper_name}/current_job/output/collections", @options)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/client/scraper_job_output.rb
answersengine-0.10.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.9.1 lib/answersengine/client/scraper_job_output.rb
answersengine-0.9.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.8.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.7.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.6.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.5.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.4.1 lib/answersengine/client/scraper_job_output.rb
answersengine-0.4.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.3.3 lib/answersengine/client/scraper_job_output.rb
answersengine-0.3.2 lib/answersengine/client/scraper_job_output.rb
answersengine-0.3.1 lib/answersengine/client/scraper_job_output.rb
answersengine-0.3.0 lib/answersengine/client/scraper_job_output.rb
answersengine-0.2.33 lib/answersengine/client/scraper_job_output.rb