Class: ActiveJob::Serializers::TimeObjectSerializer
- Inherits:
-
ObjectSerializer
- Object
- ObjectSerializer
- ActiveJob::Serializers::TimeObjectSerializer
- Defined in:
- activejob/lib/active_job/serializers/time_object_serializer.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary collapse
- NANO_PRECISION =
9
Instance Method Summary collapse
Methods inherited from ObjectSerializer
Methods included from Singleton
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 |