Sha256: 7dfd626919bb7b1d797d613f55f19f3ade6ffbed91d2a80a9164e5fdf6eef0eb

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module TestdroidAPI
  class Projects < CloudListResource
  end

  class Project < CloudResource

    def initialize(uri, client, params= {})
      super uri, client, "project", params
      @uri, @client = uri, client
      sub_items :runs, :files, :config
    end

    def run(run_parameters = {})
      resp = @client.post("#{@uri}/runs", run_parameters)
      Run.new("#{@uri}/runs/#{resp['id']}", @client, resp)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testdroid-api-client-0.3.0 lib/testdroid_api/projects.rb