Class: Appear::Processes::ProcessInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/appear/processes.rb

Overview

contains information about a process. Returned by Processes#get_info and its derivatives.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ProcessInfo

Returns a new instance of ProcessInfo.



19
20
21
22
23
# File 'lib/appear/processes.rb', line 19

def initialize(hash)
  hash.each do |key, value|
    send("#{key}=", value)
  end
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



18
19
20
# File 'lib/appear/processes.rb', line 18

def command
  @command
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/appear/processes.rb', line 18

def name
  @name
end

#parent_pidObject

Returns the value of attribute parent_pid.



18
19
20
# File 'lib/appear/processes.rb', line 18

def parent_pid
  @parent_pid
end

#pidObject

Returns the value of attribute pid.



18
19
20
# File 'lib/appear/processes.rb', line 18

def pid
  @pid
end