Class: OnsOnRails::Publishers::Test
- Inherits:
-
Object
- Object
- OnsOnRails::Publishers::Test
- Defined in:
- lib/ons_on_rails/publishers/test.rb
Instance Method Summary collapse
-
#initialize(_options) ⇒ Test
constructor
A new instance of Test.
- #publish(topic, tag, body, key) ⇒ Object
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() 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 |