Class: MessageBus::Backends::Postgres::Client::Listener
- Inherits:
-
Object
- Object
- MessageBus::Backends::Postgres::Client::Listener
- Defined in:
- lib/message_bus/backends/postgres.rb
Instance Attribute Summary collapse
-
#do_message ⇒ Object
readonly
Returns the value of attribute do_message.
-
#do_sub ⇒ Object
readonly
Returns the value of attribute do_sub.
-
#do_unsub ⇒ Object
readonly
Returns the value of attribute do_unsub.
Instance Method Summary collapse
Instance Attribute Details
#do_message ⇒ Object (readonly)
Returns the value of attribute do_message.
27 28 29 |
# File 'lib/message_bus/backends/postgres.rb', line 27 def @do_message end |
#do_sub ⇒ Object (readonly)
Returns the value of attribute do_sub.
27 28 29 |
# File 'lib/message_bus/backends/postgres.rb', line 27 def do_sub @do_sub end |
#do_unsub ⇒ Object (readonly)
Returns the value of attribute do_unsub.
27 28 29 |
# File 'lib/message_bus/backends/postgres.rb', line 27 def do_unsub @do_unsub end |
Instance Method Details
#message(&block) ⇒ Object
37 38 39 |
# File 'lib/message_bus/backends/postgres.rb', line 37 def (&block) @do_message = block end |
#subscribe(&block) ⇒ Object
29 30 31 |
# File 'lib/message_bus/backends/postgres.rb', line 29 def subscribe(&block) @do_sub = block end |
#unsubscribe(&block) ⇒ Object
33 34 35 |
# File 'lib/message_bus/backends/postgres.rb', line 33 def unsubscribe(&block) @do_unsub = block end |