Class: TestRescueAgent::TestRescueClient::TestRun

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TestRun.



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

def initialize(client, attributes={})
  @client = client
  @id = attributes["id"]
  @file_run_id = attributes["file_run_id"]
  @test_id = attributes["test_id"]
  @description = attributes["description"]
  @location = attributes["location"]
  @result = attributes["result"]
  @failure_details = attributes["failure_details"]
  @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/test_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/test_run.rb', line 4

def description
  @description
end

#failure_detailsObject (readonly)

Returns the value of attribute failure_details.



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

def failure_details
  @failure_details
end

#file_run_idObject (readonly)

Returns the value of attribute file_run_id.



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

def file_run_id
  @file_run_id
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#resultObject (readonly)

Returns the value of attribute result.



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

def result
  @result
end

#test_idObject (readonly)

Returns the value of attribute test_id.



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

def test_id
  @test_id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end