Class: Contrast::CommonAgentConfiguration

Inherits:
Object
  • Object
show all
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

#hsh

Instance Method Summary collapse

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