Class: MarilynRPC::CallResponseMail

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

Constant Summary collapse

TYPE =
2

Constants included from MailHelper

MailHelper::SERIALIZER

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



20
21
22
# File 'lib/marilyn-rpc/mails.rb', line 20

def result
  @result
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

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

#encodeObject



24
25
26
# File 'lib/marilyn-rpc/mails.rb', line 24

def encode
  SERIALIZER.dump([self.tag, self.result])
end