Class: ActiveJob::Serializers::TimeObjectSerializer

Inherits:
ObjectSerializer show all
Defined in:
lib/active_job/serializers/time_object_serializer.rb

Overview

:nodoc:

Constant Summary collapse

NANO_PRECISION =
9

Instance Method Summary collapse

Methods inherited from ObjectSerializer

#deserialize, #serialize?

Instance Method Details

#serialize(time) ⇒ Object



8
9
10
# File 'lib/active_job/serializers/time_object_serializer.rb', line 8

def serialize(time)
  super("value" => time.iso8601(NANO_PRECISION))
end