Class: MarilynRPC::CallRequestMail

Inherits:
Struct
  • Object
show all
Includes:
MailHelper
Defined in:
lib/marilyn-rpc/mails.rb

Constant Summary collapse

TYPE =
1

Constants included from MailHelper

MailHelper::SERIALIZER

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



7
8
9
# File 'lib/marilyn-rpc/mails.rb', line 7

def args
  @args
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



7
8
9
# File 'lib/marilyn-rpc/mails.rb', line 7

def method
  @method
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/marilyn-rpc/mails.rb', line 7

def path
  @path
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of 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

#encodeObject



11
12
13
# File 'lib/marilyn-rpc/mails.rb', line 11

def encode
  SERIALIZER.dump([self.tag, self.path, self.method, self.args])
end