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.
-
#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.
328 329 330 331 332 333 334 335 336 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 328 def initialize(, time = Time.now) @hash = @run_status = ["status"] @status = ["example_status"] @description = ["description"] @details = ["details"] @filename = ["filename"] @time_finished = time end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def description @description end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def details @details end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def filename @filename end |
#run_status ⇒ Object (readonly)
Returns the value of attribute run_status.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def run_status @run_status end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def status @status end |
#time_finished ⇒ Object (readonly)
Returns the value of attribute time_finished.
326 327 328 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 326 def time_finished @time_finished end |
Class Method Details
.from_json_parse(hash) ⇒ Object
342 343 344 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 342 def self.from_json_parse(hash) Result.new(hash["hash"], Time.iso8601(hash["time"])) end |
Instance Method Details
#to_json(options = nil) ⇒ Object
338 339 340 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 338 def to_json( = nil) { hash: @hash, time: @time_finished.iso8601(9) }.to_json end |