Class: Snipr::KernelProcess
- Inherits:
-
Struct
- Object
- Struct
- Snipr::KernelProcess
- Defined in:
- lib/snipr/process_locator.rb
Overview
Simple data structure representing a kernel process
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#cpu ⇒ Object
Returns the value of attribute cpu.
-
#etime ⇒ Object
Returns the value of attribute etime.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#ppid ⇒ Object
Returns the value of attribute ppid.
-
#seconds_alive ⇒ Object
Returns the value of attribute seconds_alive.
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def command @command end |
#cpu ⇒ Object
Returns the value of attribute cpu
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def cpu @cpu end |
#etime ⇒ Object
Returns the value of attribute etime
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def etime @etime end |
#memory ⇒ Object
Returns the value of attribute memory
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def memory @memory end |
#pid ⇒ Object
Returns the value of attribute pid
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def pid @pid end |
#ppid ⇒ Object
Returns the value of attribute ppid
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def ppid @ppid end |
#seconds_alive ⇒ Object
Returns the value of attribute seconds_alive
4 5 6 |
# File 'lib/snipr/process_locator.rb', line 4 def seconds_alive @seconds_alive end |