Class: ActiveSupport::Messages::Codec
- Includes:
- Metadata
- Defined in:
- lib/active_support/messages/codec.rb
Overview
:nodoc:
Direct Known Subclasses
ActiveSupport::MessageEncryptor, ActiveSupport::MessageVerifier
Constant Summary
Constants included from Metadata
Metadata::ENVELOPE_SERIALIZERS, Metadata::TIMESTAMP_SERIALIZERS
Instance Attribute Summary
Attributes included from Metadata
#use_message_serializer_for_metadata
Instance Method Summary collapse
-
#initialize(**options) ⇒ Codec
constructor
A new instance of Codec.
Constructor Details
#initialize(**options) ⇒ Codec
Returns a new instance of Codec.
15 16 17 18 19 20 |
# File 'lib/active_support/messages/codec.rb', line 15 def initialize(**) @serializer = [:serializer] || self.class.default_serializer @serializer = SerializerWithFallback[@serializer] if @serializer.is_a?(Symbol) @url_safe = [:url_safe] @force_legacy_metadata_serializer = [:force_legacy_metadata_serializer] end |