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