Class: Freddy::Delivery
- Inherits:
-
Object
- Object
- Freddy::Delivery
- Defined in:
- lib/freddy/delivery.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
Instance Method Summary collapse
- #correlation_id ⇒ Object
-
#initialize(payload, metadata, routing_key) ⇒ Delivery
constructor
A new instance of Delivery.
- #reply_to ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(payload, metadata, routing_key) ⇒ Delivery
Returns a new instance of Delivery.
5 6 7 8 9 |
# File 'lib/freddy/delivery.rb', line 5 def initialize(payload, , routing_key) @payload = payload @metadata = @routing_key = routing_key end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/freddy/delivery.rb', line 3 def payload @payload end |
#routing_key ⇒ Object (readonly)
Returns the value of attribute routing_key.
3 4 5 |
# File 'lib/freddy/delivery.rb', line 3 def routing_key @routing_key end |
Instance Method Details
#correlation_id ⇒ Object
11 12 13 |
# File 'lib/freddy/delivery.rb', line 11 def correlation_id @metadata.correlation_id end |
#reply_to ⇒ Object
19 20 21 |
# File 'lib/freddy/delivery.rb', line 19 def reply_to @metadata.reply_to end |
#type ⇒ Object
15 16 17 |
# File 'lib/freddy/delivery.rb', line 15 def type @metadata.type end |