Class: EnvelopeWrapper
- Inherits:
-
EnvelopeWrapperBase
- Object
- EnvelopeWrapperBase
- EnvelopeWrapper
- Defined in:
- lib/rookout/com_ws/envelope_wrapper.rb
Instance Method Summary collapse
- #calculate_size ⇒ Object
- #envelope ⇒ Object
-
#initialize(message) ⇒ EnvelopeWrapper
constructor
A new instance of EnvelopeWrapper.
Methods inherited from EnvelopeWrapperBase
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 super() @envelope = wrap_in_envelope end |
Instance Method Details
#calculate_size ⇒ Object
65 66 67 |
# File 'lib/rookout/com_ws/envelope_wrapper.rb', line 65 def calculate_size @envelope.length end |
#envelope ⇒ Object
61 62 63 |
# File 'lib/rookout/com_ws/envelope_wrapper.rb', line 61 def envelope @envelope end |