Class: RSpec::MultiprocessRunner::MockWorker

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_fileObject (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_reasonObject (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_numberObject (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

#nodeObject (readonly)

Returns the value of attribute node.



323
324
325
# File 'lib/rspec/multiprocess_runner/worker.rb', line 323

def node
  @node
end

#pidObject (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