Class: ActiveJob::Serializers::TimeWithZoneSerializer

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

Overview

:nodoc:

Constant Summary

Constants inherited from TimeObjectSerializer

ActiveJob::Serializers::TimeObjectSerializer::NANO_PRECISION

Instance Method Summary collapse

Methods inherited from TimeObjectSerializer

#serialize

Methods inherited from ObjectSerializer

#serialize, #serialize?

Methods included from Singleton

#duplicable?

Instance Method Details

#deserialize(hash) ⇒ Object


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

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