Class: Contrast::Agent::Inventory::Policy::TriggerNode

Inherits:
Patching::Policy::TriggerNode show all
Defined in:
lib/contrast/agent/inventory/policy/trigger_node.rb

Overview

This class functions to translate our policy.json into an actionable Ruby object, allowing for dynamic patching over hardcoded patching, specifically for those methods which result in the trigger of an event interesting to the design of the application.

Constant Summary

Constants inherited from Patching::Policy::TriggerNode

Patching::Policy::TriggerNode::JSON_APPLICATOR, Patching::Policy::TriggerNode::JSON_APPLICATOR_METHOD, Patching::Policy::TriggerNode::JSON_NAME, Patching::Policy::TriggerNode::JSON_ON_EXCEPTION, Patching::Policy::TriggerNode::JSON_OPTIONAL_PROPS, Patching::Policy::TriggerNode::JSON_REQUIRED_PROPS, Patching::Policy::TriggerNode::NODE

Instance Attribute Summary

Attributes inherited from Patching::Policy::TriggerNode

#applicator, #applicator_method, #on_exception, #optional_properties, #required_properties, #rule_id

Attributes inherited from Patching::Policy::PolicyNode

#class_name, #instance_method, #method_name, #method_scope, #method_visibility, #properties

Instance Method Summary collapse

Methods inherited from Patching::Policy::TriggerNode

#initialize, #node_class, #validate, #validate_rule

Methods inherited from Patching::Policy::PolicyNode

#id, #initialize, #instance_method?, #node_class, #validate

Methods included from Components::Interface

included

Constructor Details

This class inherits a constructor from Contrast::Agent::Patching::Policy::TriggerNode

Instance Method Details

#featureObject



15
16
17
# File 'lib/contrast/agent/inventory/policy/trigger_node.rb', line 15

def feature
  'Inventory'
end