Class: Evesync::Watcher::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/evesync/watcher/interface.rb

Overview

Base watcher abstract class with methods for other watchers to implement

Direct Known Subclasses

OS::PackageWatcher, File

Instance Method Summary collapse

Constructor Details

#initialize(_queue) ⇒ Interface

The class must be initialized with the queue object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/evesync/watcher/interface.rb', line 7

def initialize(_queue)
  raise NotImplementedError, "must implement 'initialize'"
end

Instance Method Details

#startObject

The watcher must be able to handle start and stop calls

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/evesync/watcher/interface.rb', line 12

def start
  raise NotImplementedError, "must implement 'start'"
end

#stopObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/evesync/watcher/interface.rb', line 16

def stop
  raise NotImplementedError, "must implement 'stop'"
end