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.



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

def initialize(&get_proc)
  @get_proc = get_proc
end

Instance Method Details

#message(topic, message) ⇒ Object



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

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