Class: ActiveJob::Serializers::DurationSerializer
- Inherits:
-
ObjectSerializer
- Object
- ObjectSerializer
- ActiveJob::Serializers::DurationSerializer
- Defined in:
- lib/active_job/serializers/duration_serializer.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from ObjectSerializer
Instance Method Details
#deserialize(hash) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/active_job/serializers/duration_serializer.rb', line 10 def deserialize(hash) value = hash["value"] parts = Arguments.deserialize(hash["parts"]) klass.new(value, parts) end |