Sha256: 36449244ed840476f4fa0bf51c405c2c908d138b6136a37c3eeb13c21001f508

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

module AnswersEngine
  module Client
    class ScraperDeployment < AnswersEngine::Client::Base

      def all(scraper_name, opts={})
        params = @options.merge(opts)
        self.class.get("/scrapers/#{scraper_name}/deployments", params)
      end


      def deploy(scraper_name, opts={})
        params = @options.merge(opts)
        self.class.post("/scrapers/#{scraper_name}/deployments", params)
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/client/scraper_deployment.rb
answersengine-0.10.0 lib/answersengine/client/scraper_deployment.rb
answersengine-0.9.1 lib/answersengine/client/scraper_deployment.rb
answersengine-0.9.0 lib/answersengine/client/scraper_deployment.rb
answersengine-0.8.0 lib/answersengine/client/scraper_deployment.rb
answersengine-0.7.0 lib/answersengine/client/scraper_deployment.rb
answersengine-0.6.0 lib/answersengine/client/scraper_deployment.rb
answersengine-0.5.0 lib/answersengine/client/scraper_deployment.rb