Class: OnsOnRails::Publishers::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/ons_on_rails/publishers/test.rb

Instance Method Summary collapse

Constructor Details

#initialize(_options) ⇒ Test

Returns a new instance of Test.



4
5
# File 'lib/ons_on_rails/publishers/test.rb', line 4

def initialize(_options)
end

Instance Method Details

#publish(topic, tag, body, key) ⇒ Object



7
8
9
# File 'lib/ons_on_rails/publishers/test.rb', line 7

def publish(topic, tag, body, key)
  Publisher.deliveries << { topic: topic, tag: tag, body: body, key: key }
end