Class: RSpec::MultiprocessRunner::Result
- Inherits:
-
Object
- Object
- RSpec::MultiprocessRunner::Result
- Defined in:
- lib/rspec/multiprocess_runner/worker.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#run_status ⇒ Object
readonly
Returns the value of attribute run_status.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#time_finished ⇒ Object
readonly
Returns the value of attribute time_finished.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(complete_message, time = Time.now) ⇒ Result
constructor
A new instance of Result.
- #to_json(options = nil) ⇒ Object
Constructor Details
#initialize(complete_message, time = Time.now) ⇒ Result
Returns a new instance of Result.
342 343 344 345 346 347 348 349 350 351 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 342 def initialize(, time = Time.now) @hash = @run_status = ["status"] @status = ["example_status"] @description = ["description"] @details = ["details"] @filename = ["filename"] @message = ["message"] @time_finished = time end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def description @description end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def details @details end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def filename @filename end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def @message end |
#run_status ⇒ Object (readonly)
Returns the value of attribute run_status.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def run_status @run_status end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def status @status end |
#time_finished ⇒ Object (readonly)
Returns the value of attribute time_finished.
340 341 342 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 340 def time_finished @time_finished end |
Class Method Details
Instance Method Details
#to_json(options = nil) ⇒ Object
353 354 355 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 353 def to_json( = nil) { hash: @hash, time: @time_finished.iso8601(9) }.to_json end |