Class: LevelUp::Task::Cancel
- Inherits:
-
LevelUp::Task
- Object
- LevelUp::Task
- LevelUp::Task::Cancel
- Defined in:
- app/models/level_up/task/cancel.rb
Instance Attribute Summary
Attributes inherited from LevelUp::Task
#allow_retry, #allow_transition, #job
Instance Method Summary collapse
Methods inherited from LevelUp::Task
#execute, #initialize, #manual_task!, #move_to!, #retry_in!
Constructor Details
This class inherits a constructor from LevelUp::Task
Instance Method Details
#run ⇒ Object
3 4 5 |
# File 'app/models/level_up/task/cancel.rb', line 3 def run job.canceled_at = DateTime.now.utc end |