Class: AMF::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/amf/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targetURL, responseURL, data) ⇒ Message

Returns a new instance of Message.



5
6
7
8
9
# File 'lib/amf/message.rb', line 5

def initialize( targetURL, responseURL, data )
  @targetURL = targetURL
  @responseURL = responseURL
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/amf/message.rb', line 3

def data
  @data
end

#responseURLObject

Returns the value of attribute responseURL.



3
4
5
# File 'lib/amf/message.rb', line 3

def responseURL
  @responseURL
end

#targetURLObject

Returns the value of attribute targetURL.



3
4
5
# File 'lib/amf/message.rb', line 3

def targetURL
  @targetURL
end

Instance Method Details

#to_hashObject



11
12
13
# File 'lib/amf/message.rb', line 11

def to_hash
  { 'targetUri' => self.targetURL, 'responseUri' => self.responseURL, 'data' => recursive_marshal( data ) }
end