Class: Ration::Backends::Base
- Inherits:
-
Object
- Object
- Ration::Backends::Base
- Defined in:
- lib/ration/backends/base.rb
Constant Summary collapse
- DEFAULT_MAX_PAYLOAD_BYTES =
6 * 1024
Instance Method Summary collapse
Instance Method Details
#on_event(&block) ⇒ Object
10 11 12 |
# File 'lib/ration/backends/base.rb', line 10 def on_event(&block) @on_event = block end |
#publish(event) ⇒ Object
6 7 8 |
# File 'lib/ration/backends/base.rb', line 6 def publish(event) raise NotImplementedError end |
#start ⇒ Object
14 15 16 |
# File 'lib/ration/backends/base.rb', line 14 def start raise NotImplementedError end |
#stop ⇒ Object
18 19 20 |
# File 'lib/ration/backends/base.rb', line 18 def stop raise NotImplementedError end |