Class: Foreman::Process
- Inherits:
-
Object
- Object
- Foreman::Process
- Defined in:
- lib/foreman/process.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, command) ⇒ Process
constructor
A new instance of Process.
Constructor Details
#initialize(name, command) ⇒ Process
Returns a new instance of Process.
9 10 11 12 |
# File 'lib/foreman/process.rb', line 9 def initialize(name, command) @name = name @command = command end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
7 8 9 |
# File 'lib/foreman/process.rb', line 7 def color @color end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/foreman/process.rb', line 6 def command @command end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/foreman/process.rb', line 5 def name @name end |