Class: ActiveJob::Serializers::DateTimeSerializer

Inherits:
TimeObjectSerializer show all
Defined in:
lib/active_job/serializers/date_time_serializer.rb

Overview

:nodoc:

Constant Summary

Constants inherited from TimeObjectSerializer

TimeObjectSerializer::NANO_PRECISION

Instance Method Summary collapse

Methods inherited from TimeObjectSerializer

#serialize

Methods inherited from ObjectSerializer

#serialize, #serialize?

Instance Method Details

#deserialize(hash) ⇒ Object



6
7
8
# File 'lib/active_job/serializers/date_time_serializer.rb', line 6

def deserialize(hash)
  DateTime.iso8601(hash["value"])
end