Class: Wampproto::MessageWithRecipient
- Inherits:
-
Object
- Object
- Wampproto::MessageWithRecipient
- Defined in:
- lib/wampproto/message_with_recipient.rb
Overview
handler class for dealer and broker responses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#recipient ⇒ Object
readonly
Returns the value of attribute recipient.
Instance Method Summary collapse
-
#initialize(message, recipient) ⇒ MessageWithRecipient
constructor
A new instance of MessageWithRecipient.
Constructor Details
#initialize(message, recipient) ⇒ MessageWithRecipient
Returns a new instance of MessageWithRecipient.
8 9 10 11 |
# File 'lib/wampproto/message_with_recipient.rb', line 8 def initialize(, recipient) @message = @recipient = recipient end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/wampproto/message_with_recipient.rb', line 6 def @message end |
#recipient ⇒ Object (readonly)
Returns the value of attribute recipient.
6 7 8 |
# File 'lib/wampproto/message_with_recipient.rb', line 6 def recipient @recipient end |