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