Class: ConfigurationService::Configuration
- Inherits:
-
Object
- Object
- ConfigurationService::Configuration
- Defined in:
- lib/configuration_service/configuration.rb
Overview
Encapsulates configuration data and its metadata
-
+identifier is the string identifier of the data and metadata.
-
datais a dictionary of (possibly sensitive) configuration data, which providers are expected to secure. -
metadatais a dictionary of data about the configuration data, which providers are not expected to secure.
It is recommended that both dictionaries use strings as keys, and that values be limited to those that can be serialized to JSON.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
:nodoc:.
-
#identifier ⇒ Object
readonly
:nodoc:.
-
#metadata ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(identifier, data, metadata) ⇒ Configuration
constructor
Returns a new Configuration.
Constructor Details
#initialize(identifier, data, metadata) ⇒ Configuration
Returns a new Configuration
22 23 24 25 26 |
# File 'lib/configuration_service/configuration.rb', line 22 def initialize(identifier, data, ) @identifier = identifier @data = data = end |
Instance Attribute Details
#data ⇒ Object (readonly)
:nodoc:
17 18 19 |
# File 'lib/configuration_service/configuration.rb', line 17 def data @data end |
#identifier ⇒ Object (readonly)
:nodoc:
17 18 19 |
# File 'lib/configuration_service/configuration.rb', line 17 def identifier @identifier end |
#metadata ⇒ Object (readonly)
:nodoc:
17 18 19 |
# File 'lib/configuration_service/configuration.rb', line 17 def end |