Class: UnixProcesses
- Inherits:
-
Object
- Object
- UnixProcesses
- Defined in:
- lib/unix-processes.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#processes ⇒ Object
Returns the value of attribute processes.
Instance Method Summary collapse
-
#initialize(hostname) ⇒ UnixProcesses
constructor
A new instance of UnixProcesses.
Constructor Details
#initialize(hostname) ⇒ UnixProcesses
Returns a new instance of UnixProcesses.
3 4 5 6 7 |
# File 'lib/unix-processes.rb', line 3 def initialize(hostname) @hostname = hostname @processes = [] @headers = nil end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
2 3 4 |
# File 'lib/unix-processes.rb', line 2 def headers @headers end |
#hostname ⇒ Object
Returns the value of attribute hostname.
2 3 4 |
# File 'lib/unix-processes.rb', line 2 def hostname @hostname end |
#processes ⇒ Object
Returns the value of attribute processes.
2 3 4 |
# File 'lib/unix-processes.rb', line 2 def processes @processes end |