Class: ActiveJob::Serializers::TimeObjectSerializer

Inherits:
ObjectSerializer show all
Defined in:
activejob/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?

Methods included from Singleton

#duplicable?

Instance Method Details

#serialize(time) ⇒ Object



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

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