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



23
24
25
26
27
28
# File 'lib/configuration_service/configuration.rb', line 23

def initialize(identifier, data, )
  @identifier = identifier
  @data = data
  @metadata = 
  @revision = ["revision"]
end

Instance Attribute Details

#dataObject (readonly)

TODO consider removing :revision as an attr



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

def data
  @data
end

#identifierObject (readonly)

TODO consider removing :revision as an attr



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

def identifier
  @identifier
end

#metadataObject (readonly)

TODO consider removing :revision as an attr



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

def 
  @metadata
end

#revisionObject (readonly)

TODO consider removing :revision as an attr



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

def revision
  @revision
end