Class: Serega::SeregaPlugins::Metadata::MetadataConfig
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Metadata::MetadataConfig
- Defined in:
- lib/serega/plugins/metadata/metadata.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #attribute_keys ⇒ Object
-
#initialize(opts) ⇒ MetadataConfig
constructor
A new instance of MetadataConfig.
Constructor Details
#initialize(opts) ⇒ MetadataConfig
Returns a new instance of MetadataConfig.
44 45 46 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 44 def initialize(opts) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
42 43 44 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 42 def opts @opts end |
Instance Method Details
#attribute_keys ⇒ Object
48 49 50 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 48 def attribute_keys opts.fetch(:attribute_keys) end |