Class: RSpec::MultiprocessRunner::ExampleResult

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/multiprocess_runner/worker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(example_complete_message) ⇒ ExampleResult

Returns a new instance of ExampleResult.



305
306
307
308
309
310
311
# File 'lib/rspec/multiprocess_runner/worker.rb', line 305

def initialize(example_complete_message)
  @status = example_complete_message["example_status"]
  @description = example_complete_message["description"]
  @details = example_complete_message["details"]
  @file_path = example_complete_message["file_path"]
  @time_finished = Time.now
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



303
304
305
# File 'lib/rspec/multiprocess_runner/worker.rb', line 303

def description
  @description
end

#detailsObject (readonly)

Returns the value of attribute details.



303
304
305
# File 'lib/rspec/multiprocess_runner/worker.rb', line 303

def details
  @details
end

#file_pathObject (readonly)

Returns the value of attribute file_path.



303
304
305
# File 'lib/rspec/multiprocess_runner/worker.rb', line 303

def file_path
  @file_path
end

#statusObject (readonly)

Returns the value of attribute status.



303
304
305
# File 'lib/rspec/multiprocess_runner/worker.rb', line 303

def status
  @status
end

#time_finishedObject (readonly)

Returns the value of attribute time_finished.



303
304
305
# File 'lib/rspec/multiprocess_runner/worker.rb', line 303

def time_finished
  @time_finished
end