Class: AMF::Message
- Inherits:
-
Object
- Object
- AMF::Message
- Defined in:
- lib/amf/message.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#responseURL ⇒ Object
Returns the value of attribute responseURL.
-
#targetURL ⇒ Object
Returns the value of attribute targetURL.
Instance Method Summary collapse
-
#initialize(targetURL, responseURL, data) ⇒ Message
constructor
A new instance of Message.
- #to_hash ⇒ Object
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
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/amf/message.rb', line 3 def data @data end |
#responseURL ⇒ Object
Returns the value of attribute responseURL.
3 4 5 |
# File 'lib/amf/message.rb', line 3 def responseURL @responseURL end |
#targetURL ⇒ Object
Returns the value of attribute targetURL.
3 4 5 |
# File 'lib/amf/message.rb', line 3 def targetURL @targetURL end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/amf/message.rb', line 11 def to_hash { 'targetUri' => self.targetURL, 'responseUri' => self.responseURL, 'data' => recursive_marshal( data ) } end |