Class: BBK::AMQP::Publisher::PublishedMessage
- Inherits:
-
Object
- Object
- BBK::AMQP::Publisher::PublishedMessage
- Defined in:
- lib/bbk/amqp/publisher.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(headers, payload) ⇒ PublishedMessage
constructor
A new instance of PublishedMessage.
Constructor Details
#initialize(headers, payload) ⇒ PublishedMessage
Returns a new instance of PublishedMessage.
18 19 20 21 |
# File 'lib/bbk/amqp/publisher.rb', line 18 def initialize(headers, payload) @headers = headers @payload = payload end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
16 17 18 |
# File 'lib/bbk/amqp/publisher.rb', line 16 def headers @headers end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
16 17 18 |
# File 'lib/bbk/amqp/publisher.rb', line 16 def payload @payload end |