Class: Cyrun::SingleSpecExecutionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/cyrun/single_spec_execution_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task, result_filename, net_time_in_seconds, success) ⇒ SingleSpecExecutionResult

Returns a new instance of SingleSpecExecutionResult.



7
8
9
10
11
12
# File 'lib/cyrun/single_spec_execution_result.rb', line 7

def initialize(task, result_filename, net_time_in_seconds, success)
  @task = task
  @net_time_in_seconds = net_time_in_seconds
  @success = success
  @result_filename = result_filename
end

Instance Attribute Details

#net_time_in_secondsObject (readonly)

Returns the value of attribute net_time_in_seconds.



5
6
7
# File 'lib/cyrun/single_spec_execution_result.rb', line 5

def net_time_in_seconds
  @net_time_in_seconds
end

#result_filenameObject (readonly)

Returns the value of attribute result_filename.



5
6
7
# File 'lib/cyrun/single_spec_execution_result.rb', line 5

def result_filename
  @result_filename
end

#successObject (readonly)

Returns the value of attribute success.



5
6
7
# File 'lib/cyrun/single_spec_execution_result.rb', line 5

def success
  @success
end

#taskObject (readonly)

Returns the value of attribute task.



5
6
7
# File 'lib/cyrun/single_spec_execution_result.rb', line 5

def task
  @task
end