Class: ActiveJob::Serializers::RangeSerializer
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ObjectSerializer
|
|
Instance Chain:
self,
ObjectSerializer ,
::Singleton
|
|
Inherits: |
ActiveJob::Serializers::ObjectSerializer
|
Defined in: | activejob/lib/active_job/serializers/range_serializer.rb |
Constant Summary
-
KEYS =
# File 'activejob/lib/active_job/serializers/range_serializer.rb', line 6%w[begin end exclude_end].freeze
Instance Attribute Summary
ObjectSerializer
- Inherited
#deserialize | Deserializes an argument from a JSON primitive type. |
#serialize? | Determines if an argument should be serialized by a serializer. |
::Singleton
- Included
#duplicable? |
|
Instance Method Summary
ObjectSerializer
- Inherited
#serialize | Serializes an argument to a JSON primitive type. |
#klass | The class of the object that will be serialized. |
Instance Method Details
#deserialize(hash)
[ GitHub ]# File 'activejob/lib/active_job/serializers/range_serializer.rb', line 13
def deserialize(hash) klass.new(*Arguments.deserialize(hash.values_at(*KEYS))) end