Class: Snipr::KernelProcess

Inherits:
Struct
  • Object
show all
Defined in:
lib/snipr/process_locator.rb

Overview

Simple data structure representing a kernel process

Instance Attribute Summary collapse

Instance Attribute Details

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def command
  @command
end

#cpuObject

Returns the value of attribute cpu

Returns:

  • (Object)

    the current value of cpu



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def cpu
  @cpu
end

#etimeObject

Returns the value of attribute etime

Returns:

  • (Object)

    the current value of etime



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def etime
  @etime
end

#memoryObject

Returns the value of attribute memory

Returns:

  • (Object)

    the current value of memory



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def memory
  @memory
end

#pidObject

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def pid
  @pid
end

#ppidObject

Returns the value of attribute ppid

Returns:

  • (Object)

    the current value of ppid



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def ppid
  @ppid
end

#seconds_aliveObject

Returns the value of attribute seconds_alive

Returns:

  • (Object)

    the current value of seconds_alive



4
5
6
# File 'lib/snipr/process_locator.rb', line 4

def seconds_alive
  @seconds_alive
end