Class: ActiveJob::Serializers::TimeObjectSerializer
- Inherits:
-
ObjectSerializer
- Object
- ObjectSerializer
- ActiveJob::Serializers::TimeObjectSerializer
- Defined in:
- 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
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 |