Class: SimplePubSub::Client::PubSub::Echo

Inherits:
Object
  • Object
show all
Defined in:
lib/simplepubsub.rb

Instance Method Summary collapse

Constructor Details

#initialize(&get_proc) ⇒ Echo

Returns a new instance of Echo.



20
21
22
# File 'lib/simplepubsub.rb', line 20

def initialize(&get_proc)
  @get_proc = get_proc
end

Instance Method Details

#message(topic, message) ⇒ Object



24
25
26
# File 'lib/simplepubsub.rb', line 24

def message(topic, message)
  @get_proc.call topic, message
end