Class: Machine::ProcessStatus

Inherits:
SimpleDelegator
  • Object
show all
Includes:
Helpers, Sys
Defined in:
lib/machine/process_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#created_at

Constructor Details

#initialize(pid) ⇒ ProcessStatus

Returns a new instance of ProcessStatus.



21
22
23
# File 'lib/machine/process_status.rb', line 21

def initialize(pid)
  super ProcTable.ps(@pid = pid) || NullObject.new
end

Instance Attribute Details

#pidObject (readonly)

Returns the value of attribute pid.



19
20
21
# File 'lib/machine/process_status.rb', line 19

def pid
  @pid
end