Sha256: c70aa0a763a12dd3dacf92b4f87ccda611ce5ea58cb9a0b312723560fb72d8cf
Contents?: true
Size: 351 Bytes
Versions: 22
Compression:
Stored size: 351 Bytes
Contents
# frozen_string_literal: true module ActiveJob module Serializers class TimeSerializer < ObjectSerializer # :nodoc: def serialize(time) super("value" => time.iso8601) end def deserialize(hash) Time.iso8601(hash["value"]) end private def klass Time end end end end
Version data entries
22 entries across 22 versions & 1 rubygems