Class: ConfigurationService::Configuration
- Inherits:
-
Object
- Object
- ConfigurationService::Configuration
- Defined in:
- lib/configuration_service/configuration.rb
Overview
Encapsulates identified configuration data and its metadata
Instance Attribute Summary collapse
-
#data ⇒ Hash
readonly
dictionary of probably sensitive configuration data intended for an application, which providers are expected to secure.
-
#identifier ⇒ String
readonly
the unique identity of some configuration data and its associated metadata.
-
#metadata ⇒ Hash
readonly
dictionary of data about the configuration data, which providers are not expected to secure.
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
26 27 28 29 30 |
# File 'lib/configuration_service/configuration.rb', line 26 def initialize(identifier, data, ) @identifier = identifier @data = data @metadata = end |
Instance Attribute Details
#data ⇒ Hash (readonly)
dictionary of probably sensitive configuration data intended for an application, which providers are expected to secure
15 16 17 |
# File 'lib/configuration_service/configuration.rb', line 15 def data @data end |
#identifier ⇒ String (readonly)
the unique identity of some configuration data and its associated metadata
15 16 17 |
# File 'lib/configuration_service/configuration.rb', line 15 def identifier @identifier end |
#metadata ⇒ Hash (readonly)
dictionary of data about the configuration data, which providers are not expected to secure
15 16 17 |
# File 'lib/configuration_service/configuration.rb', line 15 def @metadata end |