Class: Serega::SeregaPlugins::Metadata::MetadataConfig
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Metadata::MetadataConfig
- Defined in:
- lib/serega/plugins/metadata/metadata.rb
Overview
Config for metadata
plugin
Instance Attribute Summary collapse
-
#opts ⇒ Hash
readonly
Metadata options.
Instance Method Summary collapse
-
#attribute_keys ⇒ Object
Returns allowed metadata attribute keys.
-
#initialize(opts) ⇒ Serega::SeregaPlugins::Metadata::MetadataConfig
constructor
Initializes context_metadata config object.
Constructor Details
#initialize(opts) ⇒ Serega::SeregaPlugins::Metadata::MetadataConfig
Initializes context_metadata config object
103 104 105 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 103 def initialize(opts) @opts = opts end |
Instance Attribute Details
#opts ⇒ Hash (readonly)
Returns metadata options.
94 95 96 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 94 def opts @opts end |
Instance Method Details
#attribute_keys ⇒ Object
Returns allowed metadata attribute keys
110 111 112 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 110 def attribute_keys opts.fetch(:attribute_keys) end |