Class: Appear::Processes::ProcessInfo
- Inherits:
-
Object
- Object
- Appear::Processes::ProcessInfo
- Defined in:
- lib/appear/processes.rb
Overview
contains information about a process. Returned by Processes#get_info and its derivatives.
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_pid ⇒ Object
Returns the value of attribute parent_pid.
-
#pid ⇒ Object
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(hash) ⇒ ProcessInfo
constructor
A new instance of ProcessInfo.
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
#command ⇒ Object
Returns the value of attribute command.
18 19 20 |
# File 'lib/appear/processes.rb', line 18 def command @command end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/appear/processes.rb', line 18 def name @name end |
#parent_pid ⇒ Object
Returns the value of attribute parent_pid.
18 19 20 |
# File 'lib/appear/processes.rb', line 18 def parent_pid @parent_pid end |
#pid ⇒ Object
Returns the value of attribute pid.
18 19 20 |
# File 'lib/appear/processes.rb', line 18 def pid @pid end |