Class: MarilynRPC::CallRequestMail
- Inherits:
-
Struct
- Object
- Struct
- MarilynRPC::CallRequestMail
- Includes:
- MailHelper
- Defined in:
- lib/marilyn-rpc/mails.rb
Constant Summary collapse
- TYPE =
1
Constants included from MailHelper
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
7 8 9 |
# File 'lib/marilyn-rpc/mails.rb', line 7 def args @args end |
#method ⇒ Object
Returns the value of attribute method
7 8 9 |
# File 'lib/marilyn-rpc/mails.rb', line 7 def method @method end |
#path ⇒ Object
Returns the value of attribute path
7 8 9 |
# File 'lib/marilyn-rpc/mails.rb', line 7 def path @path end |
#tag ⇒ Object
Returns the value of attribute tag
7 8 9 |
# File 'lib/marilyn-rpc/mails.rb', line 7 def tag @tag end |
Instance Method Details
#decode(data) ⇒ Object
15 16 17 |
# File 'lib/marilyn-rpc/mails.rb', line 15 def decode(data) self.tag, self.path, self.method, self.args = SERIALIZER.load(data) end |
#encode ⇒ Object
11 12 13 |
# File 'lib/marilyn-rpc/mails.rb', line 11 def encode SERIALIZER.dump([self.tag, self.path, self.method, self.args]) end |