Class: Schedule::Task
- Inherits:
-
Object
- Object
- Schedule::Task
- Defined in:
- lib/schedule/task.rb
Instance Attribute Summary collapse
-
#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) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name, command) ⇒ Task
Returns a new instance of Task.
5 6 7 8 |
# File 'lib/schedule/task.rb', line 5 def initialize(name, command) @name = name @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/schedule/task.rb', line 3 def command @command end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/schedule/task.rb', line 3 def name @name end |