Class: ActiveMessaging::Adapters::Kestrel::Message
- Inherits:
-
Struct
- Object
- Struct
- ActiveMessaging::Adapters::Kestrel::Message
- Defined in:
- lib/active_messaging/adapters/kestrel.rb
Overview
Simple struct for wrapping received messages
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
15 16 17 |
# File 'lib/active_messaging/adapters/kestrel.rb', line 15 def body @body end |
#destination ⇒ Object
Returns the value of attribute destination
15 16 17 |
# File 'lib/active_messaging/adapters/kestrel.rb', line 15 def destination @destination end |
#headers ⇒ Object
Returns the value of attribute headers
15 16 17 |
# File 'lib/active_messaging/adapters/kestrel.rb', line 15 def headers @headers end |
Instance Method Details
#matches_subscription?(subscription) ⇒ Boolean
16 17 18 |
# File 'lib/active_messaging/adapters/kestrel.rb', line 16 def matches_subscription?(subscription) destination.to_s == subscription.destination.value.to_s end |