Class: Push::Producer
- Inherits:
-
Object
- Object
- Push::Producer
- Defined in:
- lib/push/producer.rb
Overview
Give us a really easy way to publish messages to an MQ exchange. This is MQ agnostic so that it works in a test environment.
Defined Under Namespace
Classes: DSL
Instance Attribute Summary collapse
-
#backend ⇒ Object
readonly
Returns the value of attribute backend.
Instance Method Summary collapse
-
#initialize ⇒ Producer
constructor
A new instance of Producer.
- #publish(message) ⇒ Object
Constructor Details
Instance Attribute Details
#backend ⇒ Object (readonly)
Returns the value of attribute backend.
5 6 7 |
# File 'lib/push/producer.rb', line 5 def backend @backend end |