Class: YamlCspConfig::Configuration

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

Overview

Configuration class for initializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



29
30
31
32
33
34
# File 'lib/yaml_csp_config.rb', line 29

def initialize
  @configuration_file_path = Rails.root.join("config", "content_security_policy.yml")
  @default_env_var_additions_key_prefix = "CSP_CONFIGURATION_ADDITIONS_"
  @default_env_var_group_key = "CSP_CONFIGURATION_GROUP_KEY"
  @yaml_config_base_key = "content_security_policy"
end

Instance Attribute Details

#configuration_file_pathObject

Returns the value of attribute configuration_file_path.



23
24
25
# File 'lib/yaml_csp_config.rb', line 23

def configuration_file_path
  @configuration_file_path
end

#default_env_var_additions_key_prefixObject

Returns the value of attribute default_env_var_additions_key_prefix.



26
27
28
# File 'lib/yaml_csp_config.rb', line 26

def default_env_var_additions_key_prefix
  @default_env_var_additions_key_prefix
end

#default_env_var_group_keyObject

Returns the value of attribute default_env_var_group_key.



26
27
28
# File 'lib/yaml_csp_config.rb', line 26

def default_env_var_group_key
  @default_env_var_group_key
end

#yaml_config_base_keyObject

Returns the value of attribute yaml_config_base_key.



23
24
25
# File 'lib/yaml_csp_config.rb', line 23

def yaml_config_base_key
  @yaml_config_base_key
end