Sha256: fd0f64b4ac5862dc7892a84dab29bcf94c0bbb085f49414e349f8afe2b39f074

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

module MessageQueue
  module Serializers
    class Plain < Serializer
      def load(string, options = {})
        string
      end

      def dump(object, options = {})
        object
      end

      def content_type
        "text/plain"
      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/plain.rb
message_queue-0.1.0 lib/message_queue/serializers/plain.rb