Sha256: e4f4f0450b64eb06a29cc6f51abcf4497e64af89777231d80dce0953d6103ad3
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
module TestdroidAPI class Runs < CloudListResource def create(data = {}) super :body => data, :headers => {'Content-Type' => 'application/json'} end end class Run < CloudResource def initialize(uri, client, params = {}) if params.key?('projectId') and ! uri.include?("projects") uri.sub! 'runs', "projects/#{params['projectId']}/runs" end super uri, client, "run", params @uri, @client = uri, client sub_items :device_sessions end def abort() @client.post("#{@uri}/abort", params = {}) end end end
Version data entries
4 entries across 4 versions & 2 rubygems