Class: BBK::App::Spec::Dispatcher::Message

Inherits:
Dispatcher::Message show all
Defined in:
lib/bbk/app/spec/dispatcher/message.rb

Instance Attribute Summary

Attributes inherited from Dispatcher::Message

#body, #consumer, #delivery_info, #headers

Instance Method Summary collapse

Methods inherited from Dispatcher::Message

#ack, #initialize, #inspect, #nack, #payload, #reply_message_id, #to_h

Constructor Details

This class inherits a constructor from BBK::App::Dispatcher::Message

Instance Method Details

#message_idObject



14
15
16
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 14

def message_id
  headers[:message_id]
end

#protocolObject



10
11
12
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 10

def protocol
  :test
end

#reply_toObject



18
19
20
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 18

def reply_to
  headers[:reply_to] || user_id
end

#user_idObject



22
23
24
# File 'lib/bbk/app/spec/dispatcher/message.rb', line 22

def user_id
  headers[:user_id]
end