Class: Artery::Backends::Base
- Inherits:
-
Object
- Object
- Artery::Backends::Base
- Defined in:
- lib/artery/backends/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #connect(*_args) ⇒ Object
-
#initialize(config = {}) ⇒ Base
constructor
A new instance of Base.
- #publish(*_args) ⇒ Object
- #request(*_args) ⇒ Object
- #start(*_args) ⇒ Object
- #stop(*_args) ⇒ Object
- #subscribe(*_args) ⇒ Object
- #unsubscribe(*_args) ⇒ Object
Constructor Details
#initialize(config = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/artery/backends/base.rb', line 8 def initialize(config = {}) @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
6 7 8 |
# File 'lib/artery/backends/base.rb', line 6 def config @config end |
Instance Method Details
#connect(*_args) ⇒ Object
16 17 18 |
# File 'lib/artery/backends/base.rb', line 16 def connect(*_args) raise NotImplementedError end |
#publish(*_args) ⇒ Object
28 29 30 |
# File 'lib/artery/backends/base.rb', line 28 def publish(*_args) raise NotImplementedError end |
#request(*_args) ⇒ Object
32 33 34 |
# File 'lib/artery/backends/base.rb', line 32 def request(*_args) raise NotImplementedError end |
#start(*_args) ⇒ Object
12 13 14 |
# File 'lib/artery/backends/base.rb', line 12 def start(*_args) raise NotImplementedError end |
#stop(*_args) ⇒ Object
36 37 38 |
# File 'lib/artery/backends/base.rb', line 36 def stop(*_args) raise NotImplementedError end |
#subscribe(*_args) ⇒ Object
20 21 22 |
# File 'lib/artery/backends/base.rb', line 20 def subscribe(*_args) raise NotImplementedError end |
#unsubscribe(*_args) ⇒ Object
24 25 26 |
# File 'lib/artery/backends/base.rb', line 24 def unsubscribe(*_args) raise NotImplementedError end |