Class: Evesync::Watcher::Interface
- Inherits:
-
Object
- Object
- Evesync::Watcher::Interface
- Defined in:
- lib/evesync/watcher/interface.rb
Overview
Base watcher abstract class with methods for other watchers to implement
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(_queue) ⇒ Interface
constructor
The class must be initialized with the queue object.
-
#start ⇒ Object
The watcher must be able to handle start and stop calls.
- #stop ⇒ Object
Constructor Details
#initialize(_queue) ⇒ Interface
The class must be initialized with the queue object
7 8 9 |
# File 'lib/evesync/watcher/interface.rb', line 7 def initialize(_queue) raise NotImplementedError, "must implement 'initialize'" end |
Instance Method Details
#start ⇒ Object
The watcher must be able to handle start and stop calls
12 13 14 |
# File 'lib/evesync/watcher/interface.rb', line 12 def start raise NotImplementedError, "must implement 'start'" end |
#stop ⇒ Object
16 17 18 |
# File 'lib/evesync/watcher/interface.rb', line 16 def stop raise NotImplementedError, "must implement 'stop'" end |