Class: Maestro::Messenger::Message
- Inherits:
-
Hash
- Object
- Hash
- Maestro::Messenger::Message
- Defined in:
- lib/maestro_common/mq/messenger.rb
Instance Method Summary collapse
-
#initialize(msg_type, content, reply_to = nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(msg_type, content, reply_to = nil) ⇒ Message
Returns a new instance of Message.
20 21 22 23 24 25 |
# File 'lib/maestro_common/mq/messenger.rb', line 20 def initialize(msg_type, content, reply_to = nil) super() self['__msg_type__'] = msg_type self['__msg_content__'] = content self['__msg_reply_to__'] = reply_to if reply_to end |