Class: EnvelopeWrapper

Inherits:
EnvelopeWrapperBase show all
Defined in:
lib/rookout/com_ws/envelope_wrapper.rb

Instance Method Summary collapse

Methods inherited from EnvelopeWrapperBase

#wrap_in_envelope

Constructor Details

#initialize(message) ⇒ EnvelopeWrapper

Returns a new instance of EnvelopeWrapper.



56
57
58
59
# File 'lib/rookout/com_ws/envelope_wrapper.rb', line 56

def initialize message
  super()
  @envelope = wrap_in_envelope message
end

Instance Method Details

#calculate_sizeObject



65
66
67
# File 'lib/rookout/com_ws/envelope_wrapper.rb', line 65

def calculate_size
  @envelope.length
end

#envelopeObject



61
62
63
# File 'lib/rookout/com_ws/envelope_wrapper.rb', line 61

def envelope
  @envelope
end