Class: Contrast::CommonAgentConfiguration
- Includes:
- IsANode, IsAProperty
- Defined in:
- lib/contrast/common_agent_configuration.rb
Overview
A wrapper build around the Common Agent Configuration project to allow for access of the values contained in its parent_configuration_spec.yaml
Defined Under Namespace
Modules: IsANode, IsAProperty Classes: Node, Property
Constant Summary collapse
- SPEC =
The CAC spec, deserialized to a hash.
'spec'- NODES =
'nodes'- PROPERTIES =
'properties'
Instance Attribute Summary
Attributes included from IsAProperty
Instance Method Summary collapse
-
#initialize(hsh) ⇒ CommonAgentConfiguration
constructor
A new instance of CommonAgentConfiguration.
Methods included from IsANode
#children, #lookup, #method_missing, #properties
Constructor Details
#initialize(hsh) ⇒ CommonAgentConfiguration
Returns a new instance of CommonAgentConfiguration.
15 16 17 |
# File 'lib/contrast/common_agent_configuration.rb', line 15 def initialize hsh @hsh = hsh[SPEC] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Contrast::CommonAgentConfiguration::IsANode