Class: Daemonz::ProcTable::ProcInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/daemonz/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pid, cmdline) ⇒ ProcInfo

Returns a new instance of ProcInfo.



7
8
9
10
# File 'lib/daemonz/process.rb', line 7

def initialize(pid, cmdline)
  @pid = pid
  @cmdline = cmdline
end

Instance Attribute Details

#cmdlineObject (readonly)

Returns the value of attribute cmdline.



11
12
13
# File 'lib/daemonz/process.rb', line 11

def cmdline
  @cmdline
end

#pidObject (readonly)

Returns the value of attribute pid.



11
12
13
# File 'lib/daemonz/process.rb', line 11

def pid
  @pid
end