Sha256: 93e3bcfaa0b1bded1ec2419170ab08d0c5e5e4fe54d17f79dde3b5b0a13c9eae
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module Emittance module Resque ## # Entry point for serialization. # module EventSerializer class << self def use_serializer(serializer) self.serializer = serializer end def serialize(event) serializer.serialize event end def deserialize(event_hash) serializer.deserialize event_hash end private attr_accessor :serializer end end end end
Version data entries
5 entries across 5 versions & 1 rubygems