Class: LevelUp::State::Start
- Inherits:
-
LevelUp::State
- Object
- LevelUp::State
- LevelUp::State::Start
- Defined in:
- app/models/level_up/state/start.rb
Instance Attribute Summary
Attributes inherited from LevelUp::State
#allow_retry, #allow_transition, #job
Instance Method Summary collapse
Methods inherited from LevelUp::State
#execute, #initialize, #manual_task, #move_to, #retry_in
Constructor Details
This class inherits a constructor from LevelUp::State
Instance Method Details
#run ⇒ Object
3 4 5 6 7 |
# File 'app/models/level_up/state/start.rb', line 3 def run job.started_at = DateTime.now.utc next_state = job.transitions(:start).first move_to next_state end |