Sha256: 75f9d18c384856ce28c4093b0db6072bdc79f85ecef3e0c27f948915a2339976

Contents?: true

Size: 277 Bytes

Versions: 25

Compression:

Stored size: 277 Bytes

Contents

require 'msgpack'

module Eventus
  module Serializers
    module MessagePack
      class << self
        def serialize(obj)
          ::MessagePack.pack(obj)
        end

        def deserialize(obj)
          ::MessagePack.unpack(obj)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
eventus-0.6.7 lib/eventus/serializers/msgpack.rb
eventus-0.6.6 lib/eventus/serializers/msgpack.rb
eventus-0.6.5 lib/eventus/serializers/msgpack.rb
eventus-0.6.4 lib/eventus/serializers/msgpack.rb
eventus-0.6.3 lib/eventus/serializers/msgpack.rb
eventus-0.6.2 lib/eventus/serializers/msgpack.rb
eventus-0.6.1 lib/eventus/serializers/msgpack.rb
eventus-0.6.0 lib/eventus/serializers/msgpack.rb
eventus-0.5.1 lib/eventus/serializers/msgpack.rb
eventus-0.5.0 lib/eventus/serializers/msgpack.rb
eventus-0.4.3 lib/eventus/serializers/msgpack.rb
eventus-0.4.2 lib/eventus/serializers/msgpack.rb
eventus-0.4.1 lib/eventus/serializers/msgpack.rb
eventus-0.4.0 lib/eventus/serializers/msgpack.rb
eventus-0.3.9 lib/eventus/serializers/msgpack.rb
eventus-0.3.8 lib/eventus/serializers/msgpack.rb
eventus-0.3.7 lib/eventus/serializers/msgpack.rb
eventus-0.3.6 lib/eventus/serializers/msgpack.rb
eventus-0.3.5 lib/eventus/serializers/msgpack.rb
eventus-0.3.4 lib/eventus/serializers/msgpack.rb