Class: Serega::SeregaPlugins::ContextMetadata::ContextMetadataConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/plugins/context_metadata/context_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optsObject (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

#keyObject



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