Class: ConfigurationService::Configuration

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

Overview

Encapsulates identified configuration data and its metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier, data, metadata) ⇒ Configuration

Returns a new Configuration

Parameters:

  • identifier (String)

    unique identity

  • data (Hash)

    sensitive configuration data

  • metadata (Hash)

    non-sensitive configuration metadata



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

#dataHash (readonly)

dictionary of probably sensitive configuration data intended for an application, which providers are expected to secure

Returns:

  • (Hash)

    the current value of data



15
16
17
# File 'lib/configuration_service/configuration.rb', line 15

def data
  @data
end

#identifierString (readonly)

the unique identity of some configuration data and its associated metadata

Returns:

  • (String)

    the current value of identifier



15
16
17
# File 'lib/configuration_service/configuration.rb', line 15

def identifier
  @identifier
end

#metadataHash (readonly)

dictionary of data about the configuration data, which providers are not expected to secure

Returns:

  • (Hash)

    the current value of metadata



15
16
17
# File 'lib/configuration_service/configuration.rb', line 15

def 
  @metadata
end