Class: ActiveJob::Serializers::TimeObjectSerializer
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ObjectSerializer
|
|
|
Instance Chain:
self,
ObjectSerializer,
::Singleton
|
|
| Inherits: |
ActiveJob::Serializers::ObjectSerializer
|
| Defined in: | activejob/lib/active_job/serializers/time_object_serializer.rb |
Constant Summary
Class Method Summary
ObjectSerializer - Inherited
Instance Attribute Summary
ObjectSerializer - Inherited
| #deserialize | Deserializes an argument from a JSON primitive type. |
| #serialize? | Determines if an argument should be serialized by a serializer. |
::Singleton - Included
| #duplicable? |
|
Instance Method Summary
ObjectSerializer - Inherited
| #serialize | Serializes an argument to a JSON primitive type. |
Constructor Details
This class inherits a constructor from ActiveJob::Serializers::ObjectSerializer
Instance Method Details
#serialize(time)
[ GitHub ]# File 'activejob/lib/active_job/serializers/time_object_serializer.rb', line 8
def serialize(time) super("value" => time.iso8601(NANO_PRECISION)) end