Sha256: 04adb170d5887251ff4794b61a015a729adf4137876a6a5115cf6ad52519a7e8

Contents?: true

Size: 593 Bytes

Versions: 7

Compression:

Stored size: 593 Bytes

Contents

module AnswersEngine
  module Client
    class ScraperExport < AnswersEngine::Client::Base
      def all(scraper_name, opts={})
        self.class.get("/scrapers/#{scraper_name}/exports", @options)
      end

      def find(export_id)
        self.class.get("/scrapers/exports/#{export_id}", @options)
      end

      def create(scraper_name, exporter_name)
        self.class.post("/scrapers/#{scraper_name}/exports/#{exporter_name}", @options)
      end

      def download(export_id)
        self.class.get("/scrapers/exports/#{export_id}/download", @options)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
answersengine-0.4.1 lib/answersengine/client/scraper_export.rb
answersengine-0.4.0 lib/answersengine/client/scraper_export.rb
answersengine-0.3.3 lib/answersengine/client/scraper_export.rb
answersengine-0.3.2 lib/answersengine/client/scraper_export.rb
answersengine-0.3.1 lib/answersengine/client/scraper_export.rb
answersengine-0.3.0 lib/answersengine/client/scraper_export.rb
answersengine-0.2.33 lib/answersengine/client/scraper_export.rb