class Serega::SeregaPlugins::ContextMetadata::ContextMetadataConfig
Config of the :context_metadata plugin, config.context_metadata
Public Instance Methods
() → Symbol?
Source
# File lib/serega/plugins/context_metadata/context_metadata.rb, line 50 def key opts.fetch(:key) end
Name of the serialization option with metadata, :meta by default
(Symbol? new_key) → Symbol?
Source
# File lib/serega/plugins/context_metadata/context_metadata.rb, line 55 def key=(new_key) previous_key = key opts[:key] = new_key @serialize_keys.delete(previous_key) @serialize_keys << new_key if new_key end
Sets key. The previous name raises Serega::SeregaError.