Class: MarilynRPC::CallResponseMail
- Inherits:
-
Struct
- Object
- Struct
- MarilynRPC::CallResponseMail
- Includes:
- MailHelper
- Defined in:
- lib/marilyn-rpc/mails.rb
Constant Summary collapse
- TYPE =
2
Constants included from MailHelper
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result
20 21 22 |
# File 'lib/marilyn-rpc/mails.rb', line 20 def result @result end |
#tag ⇒ Object
Returns the value of attribute tag
20 21 22 |
# File 'lib/marilyn-rpc/mails.rb', line 20 def tag @tag end |
Instance Method Details
#decode(data) ⇒ Object
28 29 30 |
# File 'lib/marilyn-rpc/mails.rb', line 28 def decode(data) self.tag, self.result = SERIALIZER.load(data) end |
#encode ⇒ Object
24 25 26 |
# File 'lib/marilyn-rpc/mails.rb', line 24 def encode SERIALIZER.dump([self.tag, self.result]) end |