Class: ConfigurationService::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration_service/configuration.rb

Overview

Encapsulates configuration data and its metadata

  • +identifier is the string identifier of the data and metadata.

  • data is a dictionary of (possibly sensitive) configuration data, which providers are expected to secure.

  • metadata is 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

Instance Method Summary collapse

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
  @metadata = 
end

Instance Attribute Details

#dataObject (readonly)

:nodoc:



17
18
19
# File 'lib/configuration_service/configuration.rb', line 17

def data
  @data
end

#identifierObject (readonly)

:nodoc:



17
18
19
# File 'lib/configuration_service/configuration.rb', line 17

def identifier
  @identifier
end

#metadataObject (readonly)

:nodoc:



17
18
19
# File 'lib/configuration_service/configuration.rb', line 17

def 
  @metadata
end