Class: AmfSocket::RpcReceivedMessage
- Inherits:
-
Object
- Object
- AmfSocket::RpcReceivedMessage
- Defined in:
- lib/amf_socket/rpc_received_message.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(object, connection) ⇒ RpcReceivedMessage
constructor
A new instance of RpcReceivedMessage.
- #message_id ⇒ Object
- #params ⇒ Object
Constructor Details
#initialize(object, connection) ⇒ RpcReceivedMessage
Returns a new instance of RpcReceivedMessage.
4 5 6 7 8 9 |
# File 'lib/amf_socket/rpc_received_message.rb', line 4 def initialize(object, connection) raise AmfSocket::InvalidObject unless validate_object(object) = object[:message] @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
2 3 4 |
# File 'lib/amf_socket/rpc_received_message.rb', line 2 def connection @connection end |
Instance Method Details
#command ⇒ Object
15 16 17 |
# File 'lib/amf_socket/rpc_received_message.rb', line 15 def command return [:command] end |
#message_id ⇒ Object
11 12 13 |
# File 'lib/amf_socket/rpc_received_message.rb', line 11 def return [:messageId] end |
#params ⇒ Object
19 20 21 |
# File 'lib/amf_socket/rpc_received_message.rb', line 19 def params return [:params] end |