Module: Resque::Mailer::Serializers::PassThruSerializer

Extended by:
PassThruSerializer
Included in:
PassThruSerializer
Defined in:
lib/resque_mailer/serializers/pass_thru_serializer.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#deserialize(data) ⇒ Object



17
18
19
# File 'lib/resque_mailer/serializers/pass_thru_serializer.rb', line 17

def deserialize(data)
  data
end

#serialize(*args) ⇒ Object



13
14
15
# File 'lib/resque_mailer/serializers/pass_thru_serializer.rb', line 13

def serialize(*args)
  args
end