Class: YamlCspConfig::Configuration
- Inherits:
-
Object
- Object
- YamlCspConfig::Configuration
- Defined in:
- lib/yaml_csp_config.rb
Overview
Configuration class for initializer
Instance Attribute Summary collapse
-
#configuration_file_path ⇒ Object
Returns the value of attribute configuration_file_path.
-
#default_env_var_additions_key_prefix ⇒ Object
Returns the value of attribute default_env_var_additions_key_prefix.
-
#default_env_var_group_key ⇒ Object
Returns the value of attribute default_env_var_group_key.
-
#yaml_config_base_key ⇒ Object
Returns the value of attribute yaml_config_base_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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_prefix ⇒ Object
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_key ⇒ Object
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_key ⇒ Object
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 |