Class: EventQ::SerializationProviders::BinarySerializationProvider
- Inherits:
-
Object
- Object
- EventQ::SerializationProviders::BinarySerializationProvider
- Defined in:
- lib/eventq_base/serialization_providers/binary_serialization_provider.rb
Instance Method Summary collapse
Instance Method Details
#deserialize(msg) ⇒ Object
9 10 11 |
# File 'lib/eventq_base/serialization_providers/binary_serialization_provider.rb', line 9 def deserialize(msg) Marshal::load(msg) end |
#serialize(object) ⇒ Object
5 6 7 |
# File 'lib/eventq_base/serialization_providers/binary_serialization_provider.rb', line 5 def serialize(object) Marshal::dump(object) end |