Sha256: 406222cc9ad9e7139ba71fa3c0d7051df051fbf4fd68204128cafc40e152b45c
Contents?: true
Size: 364 Bytes
Versions: 17
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true module ActiveJob module Serializers class DateTimeSerializer < ObjectSerializer # :nodoc: def serialize(time) super("value" => time.iso8601) end def deserialize(hash) DateTime.iso8601(hash["value"]) end private def klass DateTime end end end end
Version data entries
17 entries across 17 versions & 4 rubygems