Class: MarilynRPC::ExceptionMail
- Inherits:
-
Struct
- Object
- Struct
- MarilynRPC::ExceptionMail
- Includes:
- MailHelper
- Defined in:
- lib/marilyn-rpc/mails.rb
Constant Summary collapse
- TYPE =
3
Constants included from MailHelper
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception
33 34 35 |
# File 'lib/marilyn-rpc/mails.rb', line 33 def exception @exception end |
#tag ⇒ Object
Returns the value of attribute tag
33 34 35 |
# File 'lib/marilyn-rpc/mails.rb', line 33 def tag @tag end |
Instance Method Details
#decode(data) ⇒ Object
41 42 43 |
# File 'lib/marilyn-rpc/mails.rb', line 41 def decode(data) self.tag, self.exception = SERIALIZER.load(data) end |
#encode ⇒ Object
37 38 39 |
# File 'lib/marilyn-rpc/mails.rb', line 37 def encode SERIALIZER.dump([self.tag, self.exception]) end |