Class: ActiveJob::Serializers::TimeWithZoneSerializer

Inherits:
TimeObjectSerializer show all
Defined in:
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?

Instance Method Details

#deserialize(hash) ⇒ Object



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

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