Class: BBK::App::Spec::Dispatcher::Message
- Inherits:
-
Dispatcher::Message
- Object
- Dispatcher::Message
- BBK::App::Spec::Dispatcher::Message
- Defined in:
- lib/bbk/app/spec/dispatcher/message.rb
Constant Summary
Constants inherited from Dispatcher::Message
Dispatcher::Message::ALLOWED_FOR_DUMP
Instance Attribute Summary
Attributes inherited from Dispatcher::Message
#body, #consumer, #delivery_info, #headers
Instance Method Summary collapse
Methods inherited from Dispatcher::Message
#ack, #acked?, #initialize, #inspect, #marshal_dump, #marshal_dump_object, #marshal_load, #metadata, #nack, #nacked?, #payload, #processed?, #reply_message_id, #restored?, #to_h
Constructor Details
This class inherits a constructor from BBK::App::Dispatcher::Message
Instance Method Details
#message_id ⇒ Object
14 15 16 |
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 14 def headers[:message_id] end |
#protocol ⇒ Object
10 11 12 |
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 10 def protocol :test end |
#reply_to ⇒ Object
18 19 20 |
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 18 def reply_to headers[:reply_to] || user_id end |
#user_id ⇒ Object
22 23 24 |
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 22 def user_id headers[:user_id] end |