Class: TestRescueAgent::TestRescueClient::SuiteRun

Inherits:
Object
  • Object
show all
Defined in:
lib/test_rescue_agent/test_rescue_client/suite_run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, attributes = {}) ⇒ SuiteRun

Returns a new instance of SuiteRun.



6
7
8
9
10
11
12
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 6

def initialize(client, attributes={})
  @client = client
  @id = attributes["id"]
  @repository_id = attributes["repository_id"]
  @created_at = attributes["created_at"]
  @updated_at = attributes["updated_at"]
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



4
5
6
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 4

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 4

def id
  @id
end

#repository_idObject (readonly)

Returns the value of attribute repository_id.



4
5
6
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 4

def repository_id
  @repository_id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



4
5
6
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 4

def updated_at
  @updated_at
end

Instance Method Details

#create_file_run(attributes) ⇒ Object



14
15
16
# File 'lib/test_rescue_agent/test_rescue_client/suite_run.rb', line 14

def create_file_run(attributes)
  @client.create_file_run(id, attributes)
end