Sha256: bf22f79260b6814a4346dafdbb2c4b1c2fea7b44a2e05fb4e728a90feec3b1be

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

module Rainforest
  class RunTestsEndpoint < ApiEndpoint

    def all(params={}, headers={})
      method = ApiMethod.new(:get, "/runs/:id/tests", params, headers, @parent)
      json = @client.execute(method)
      ApiList.new(:Test, json, method)
    end

    def retrieve(test_id, params={}, headers={})
      params = ParamsBuilder.merge({
        :test_id => test_id,
      }, params)
      method = ApiMethod.new(:get, "/runs/:id/tests/:test_id", params, headers, @parent)
      json = @client.execute(method)
      Test.new(json, method)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainforest-2.1.0 lib/rainforest/endpoints/run_tests_endpoint.rb
rainforest-2.0.2 lib/rainforest/endpoints/run_tests_endpoint.rb
rainforest-2.0.1 lib/rainforest/endpoints/run_tests_endpoint.rb
rainforest-2.0.0 lib/rainforest/endpoints/run_tests_endpoint.rb