Class: Warren::Message::Simple
- Inherits:
-
Struct
- Object
- Struct
- Warren::Message::Simple
- Defined in:
- lib/warren/message/simple.rb
Overview
A simple message simply wraps the routing key and payload together
Instance Attribute Summary collapse
-
#headers ⇒ Hash
Hash of header attributes.
-
#payload ⇒ String
The payload of the message.
-
#routing_key ⇒ String
The routing key of the message.
Instance Attribute Details
#headers ⇒ Hash
Returns Hash of header attributes. Can be empty hash.
13 |
# File 'lib/warren/message/simple.rb', line 13 Simple = Struct.new(:routing_key, :payload, :headers) |
#payload ⇒ String
Returns The payload of the message.
13 |
# File 'lib/warren/message/simple.rb', line 13 Simple = Struct.new(:routing_key, :payload, :headers) |
#routing_key ⇒ String
Returns The routing key of the message.
13 |
# File 'lib/warren/message/simple.rb', line 13 Simple = Struct.new(:routing_key, :payload, :headers) |