Class: AMQP::Hermes::Message
- Inherits:
-
Object
- Object
- AMQP::Hermes::Message
- Defined in:
- lib/amqp-hermes/message.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) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(headers, payload) ⇒ Message
Returns a new instance of Message.
6 7 8 9 |
# File 'lib/amqp-hermes/message.rb', line 6 def initialize(headers, payload) @headers = headers @payload = payload end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/amqp-hermes/message.rb', line 4 def headers @headers end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
4 5 6 |
# File 'lib/amqp-hermes/message.rb', line 4 def payload @payload end |