Class: Core::Watch::Status
- Inherits:
-
Object
- Object
- Core::Watch::Status
- Defined in:
- lib/core/watch/status.rb
Overview
- public
-
The status of a system watch.
Constant Summary collapse
- STATES =
%i[running paused stopped].freeze
Instance Method Summary collapse
-
#initialize ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize ⇒ Status
Returns a new instance of Status.
10 11 12 13 |
# File 'lib/core/watch/status.rb', line 10 def initialize @state = :stopped @mutex = Mutex.new end |