Class: Wampproto::MessageWithRecipient

Inherits:
Object
  • Object
show all
Defined in:
lib/wampproto/message_with_recipient.rb

Overview

handler class for dealer and broker responses

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, recipient)
  @message = message
  @recipient = recipient
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/wampproto/message_with_recipient.rb', line 6

def message
  @message
end

#recipientObject (readonly)

Returns the value of attribute recipient.



6
7
8
# File 'lib/wampproto/message_with_recipient.rb', line 6

def recipient
  @recipient
end