Class: Contrast::Config::RootConfiguration
- Inherits:
-
BaseConfiguration
- Object
- BaseConfiguration
- Contrast::Config::RootConfiguration
- Defined in:
- lib/contrast/config/root_configuration.rb
Overview
The base of the Common Configuration settings.
Constant Summary collapse
- KEYS =
{ enable: BaseConfiguration::EMPTY_VALUE, agent: Contrast::Config::AgentConfiguration, application: Contrast::Config::ApplicationConfiguration, server: Contrast::Config::ServerConfiguration, assess: Contrast::Config::AssessConfiguration, inventory: Contrast::Config::InventoryConfiguration, protect: Contrast::Config::ProtectConfiguration, service: Contrast::Config::ServiceConfiguration }.cs__freeze
Constants inherited from BaseConfiguration
BaseConfiguration::BOOLEANS, BaseConfiguration::EMPTY_VALUE
Instance Attribute Summary
Attributes inherited from BaseConfiguration
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ RootConfiguration
constructor
A new instance of RootConfiguration.
Methods inherited from BaseConfiguration
#assign_value_to_path_array, #nil?
Constructor Details
#initialize(hsh = {}) ⇒ RootConfiguration
Returns a new instance of RootConfiguration.
19 20 21 22 23 |
# File 'lib/contrast/config/root_configuration.rb', line 19 def initialize hsh = {} raise ArgumentError, 'Expected a hash' unless hsh.is_a?(Hash) super(hsh, KEYS) end |