Class: MessageBus::Backends::Postgres::Client::Listener

Inherits:
Object
  • Object
show all
Defined in:
lib/message_bus/backends/postgres.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#do_messageObject (readonly)

Returns the value of attribute do_message.



27
28
29
# File 'lib/message_bus/backends/postgres.rb', line 27

def do_message
  @do_message
end

#do_subObject (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_unsubObject (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 message(&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