Class: Timelog::Command::Pause
- Inherits:
-
Timelog::Command
- Object
- Timelog::Command
- Timelog::Command::Pause
- Defined in:
- lib/timelog/command/pause.rb
Instance Attribute Summary
Attributes inherited from Timelog::Command
Instance Method Summary collapse
Methods inherited from Timelog::Command
get, inherited, #initialize, known, register, #time_in_arguments
Constructor Details
This class inherits a constructor from Timelog::Command
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 |
# File 'lib/timelog/command/pause.rb', line 4 def execute entry = book.entries.active_or_new book.entries.pause entry, at: time_in_arguments "entry paused" end |
#help ⇒ Object
10 11 12 |
# File 'lib/timelog/command/pause.rb', line 10 def help "usage: timelog pause [<time>]" end |