Sha256: 45f885c2b1b99d6c7bbc5e566df053dde1eca2159bb5215e06d4ba79eeb81332
Contents?: true
Size: 352 Bytes
Versions: 17
Compression:
Stored size: 352 Bytes
Contents
# frozen_string_literal: true module ActiveJob module Serializers class DateSerializer < ObjectSerializer # :nodoc: def serialize(date) super("value" => date.iso8601) end def deserialize(hash) Date.iso8601(hash["value"]) end private def klass Date end end end end
Version data entries
17 entries across 17 versions & 4 rubygems