Class: TestRescueAgent::TestRescueClient::FileRun

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of FileRun.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/test_rescue_agent/test_rescue_client/file_run.rb', line 6

def initialize(client, attributes={})
  @client = client
  @id = attributes["id"]
  @path = attributes["path"]
  @description = attributes["description"]
  @suite_run_id = attributes["suite_run_id"]
  @test_file_id = attributes["test_file_id"]
  @created_at = attributes["created_at"]
  @updated_at = attributes["updated_at"]
  @command = attributes["command"]
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



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

def command
  @command
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#suite_run_idObject (readonly)

Returns the value of attribute suite_run_id.



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

def suite_run_id
  @suite_run_id
end

#test_file_idObject (readonly)

Returns the value of attribute test_file_id.



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

def test_file_id
  @test_file_id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

Instance Method Details

#create_test_run(attributes) ⇒ Object



18
19
20
# File 'lib/test_rescue_agent/test_rescue_client/file_run.rb', line 18

def create_test_run(attributes)
  @client.create_test_run(suite_run_id, id, attributes)
end