Sha256: 3dfbecbd168d37958edeb072c8e9966fc286aab6a81923494536c95b8c003564
Contents?: true
Size: 352 Bytes
Versions: 17
Compression:
Stored size: 352 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
17 entries across 17 versions & 4 rubygems