Sha256: ae7beded8cf18cffef69bb6bded852be19b8b57dc58331e89a95ab397febb5a3
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
require "msgpack" module MessageQueue module Serializers class MessagePack < Serializer def load(string, options = {}) ::MessagePack.unpack(string) end def dump(object, options = {}) ::MessagePack.pack(object) end def content_type "application/x-msgpack" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
message_queue-0.1.1 | lib/message_queue/serializers/message_pack.rb |
message_queue-0.1.0 | lib/message_queue/serializers/message_pack.rb |