Class: RSpec::MultiprocessRunner::MockWorker
- Inherits:
-
Object
- Object
- RSpec::MultiprocessRunner::MockWorker
- Defined in:
- lib/rspec/multiprocess_runner/worker.rb
Instance Attribute Summary collapse
-
#current_file ⇒ Object
readonly
Returns the value of attribute current_file.
-
#deactivation_reason ⇒ Object
readonly
Returns the value of attribute deactivation_reason.
-
#environment_number ⇒ Object
readonly
Returns the value of attribute environment_number.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash, node) ⇒ MockWorker
constructor
A new instance of MockWorker.
Constructor Details
#initialize(hash, node) ⇒ MockWorker
Returns a new instance of MockWorker.
325 326 327 328 329 330 331 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 325 def initialize(hash, node) @pid = hash["pid"] @environment_number = hash["environment_number"] @current_file = hash["current_file"] @deactivation_reason = hash["deactivation_reason"] @node = node end |
Instance Attribute Details
#current_file ⇒ Object (readonly)
Returns the value of attribute current_file.
323 324 325 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323 def current_file @current_file end |
#deactivation_reason ⇒ Object (readonly)
Returns the value of attribute deactivation_reason.
323 324 325 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323 def deactivation_reason @deactivation_reason end |
#environment_number ⇒ Object (readonly)
Returns the value of attribute environment_number.
323 324 325 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323 def environment_number @environment_number end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
323 324 325 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323 def node @node end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
323 324 325 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323 def pid @pid end |
Class Method Details
.from_json_parse(hash, node) ⇒ Object
333 334 335 |
# File 'lib/rspec/multiprocess_runner/worker.rb', line 333 def self.from_json_parse(hash, node) MockWorker.new(hash, node) end |