Class: ActiveJob::Serializers::TimeSerializer
- Inherits:
-
ObjectSerializer
- Object
- ObjectSerializer
- ActiveJob::Serializers::TimeSerializer
- Defined in:
- activejob/lib/active_job/serializers/time_serializer.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from ObjectSerializer
Instance Method Details
#deserialize(hash) ⇒ Object
10 11 12 |
# File 'activejob/lib/active_job/serializers/time_serializer.rb', line 10 def deserialize(hash) Time.iso8601(hash["value"]) end |
#serialize(time) ⇒ Object
6 7 8 |
# File 'activejob/lib/active_job/serializers/time_serializer.rb', line 6 def serialize(time) super("value" => time.iso8601) end |