Class: JsonRpcObjects::Serializer::MessagePack
- Inherits:
-
JsonRpcObjects::Serializer
- Object
- JsonRpcObjects::Serializer
- JsonRpcObjects::Serializer::MessagePack
- Defined in:
- lib/json-rpc-objects/serializer/msgpack.rb
Overview
MessagePack serializer using ‘msgpack’ gem.
Instance Method Summary collapse
-
#deserialize(data) ⇒ Object
Deserializes data.
-
#serialize(data) ⇒ Object
Serializes data.
Instance Method Details
#deserialize(data) ⇒ Object
Deserializes data.
47 48 49 |
# File 'lib/json-rpc-objects/serializer/msgpack.rb', line 47 def deserialize(data) ::MessagePack.unpack(data) end |
#serialize(data) ⇒ Object
Serializes data.
36 37 38 |
# File 'lib/json-rpc-objects/serializer/msgpack.rb', line 36 def serialize(data) ::MessagePack.pack(data) end |