Class: SweatShop::Serializers::MarshalSerializer
- Inherits:
-
SweatShop::Serializer
- Object
- SweatShop::Serializer
- SweatShop::Serializers::MarshalSerializer
- Defined in:
- lib/serializers/marshal_serializer.rb
Class Method Summary collapse
Methods inherited from SweatShop::Serializer
default, default=, get_name, inherited, log, serializer_name, serializers
Class Method Details
.deserialize(payload) ⇒ Object
9 10 11 |
# File 'lib/serializers/marshal_serializer.rb', line 9 def deserialize(payload) Marshal.load(payload) end |
.serialize(payload) ⇒ Object
5 6 7 |
# File 'lib/serializers/marshal_serializer.rb', line 5 def serialize(payload) Marshal.dump(payload) end |