Sha256: ba554dfd3edc924dfa0c582f8524c822f7ca164cb852d4d2bbc7cf71fa01665e

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

module Resque
  module Mailer
    module Serializers

      # Simple serializer for Resque arguments
      # New serializers need only implement the self.serialize(*args) and self.deserialize(data)
      # * self.serialize(*args) should return the arguments serialized as an object
      # * self.deserialize(data) should take the serialized object as its only argument and return the array of arguments

      module PassThruSerializer
        extend self

        def serialize(*args)
          args
        end

        def deserialize(data)
          data
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
resque_mailer-2.4.3 lib/resque_mailer/serializers/pass_thru_serializer.rb
resque_mailer-2.4.2 lib/resque_mailer/serializers/pass_thru_serializer.rb
resque_mailer-2.4.1 lib/resque_mailer/serializers/pass_thru_serializer.rb
resque_mailer-2.4.0 lib/resque_mailer/serializers/pass_thru_serializer.rb
resque_mailer-2.3.1 lib/resque_mailer/serializers/pass_thru_serializer.rb
resque_mailer-2.3.0 lib/resque_mailer/serializers/pass_thru_serializer.rb