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