Exception: Tasque::TaskCancel
- Inherits:
-
Exception
- Object
- Exception
- Tasque::TaskCancel
- Defined in:
- lib/tasque/task_cancel.rb
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task) ⇒ TaskCancel
constructor
A new instance of TaskCancel.
Constructor Details
#initialize(task) ⇒ TaskCancel
Returns a new instance of TaskCancel.
5 6 7 |
# File 'lib/tasque/task_cancel.rb', line 5 def initialize(task) @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
3 4 5 |
# File 'lib/tasque/task_cancel.rb', line 3 def task @task end |