Class: Serega::SeregaPlugins::ContextMetadata::ContextMetadataConfig
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::ContextMetadata::ContextMetadataConfig
- Defined in:
- lib/serega/plugins/context_metadata/context_metadata.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts) ⇒ ContextMetadataConfig
constructor
A new instance of ContextMetadataConfig.
- #key ⇒ Object
- #key=(value) ⇒ Object
Constructor Details
#initialize(opts) ⇒ ContextMetadataConfig
Returns a new instance of ContextMetadataConfig.
32 33 34 |
# File 'lib/serega/plugins/context_metadata/context_metadata.rb', line 32 def initialize(opts) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
30 31 32 |
# File 'lib/serega/plugins/context_metadata/context_metadata.rb', line 30 def opts @opts end |
Instance Method Details
#key ⇒ Object
36 37 38 |
# File 'lib/serega/plugins/context_metadata/context_metadata.rb', line 36 def key opts.fetch(:key) end |
#key=(value) ⇒ Object
40 41 42 |
# File 'lib/serega/plugins/context_metadata/context_metadata.rb', line 40 def key=(value) opts[:key] = value end |