Module: Paradeiser::Status
- Defined in:
- lib/paradeiser/models/status.rb
Constant Summary collapse
- MAP =
{ 'pomodoro:active' => 0, 'pomodoro:finished' => 1, 'break:active' => 2, 'break:finished' => 3, }
Class Method Summary collapse
Class Method Details
.of(thing) ⇒ Object
11 12 13 |
# File 'lib/paradeiser/models/status.rb', line 11 def self.of(thing) thing.nil? ? -1 : MAP[key(thing)] end |