Module: Contrast::Agent::Assess::Property::Evented
- Included in:
- Contrast::Agent::Assess::Properties
- Defined in:
- lib/contrast/agent/assess/property/evented.rb
Overview
This module serves to hold the functionality required for the management of our dataflow events.
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
Instance Method Summary collapse
-
#build_event(policy_node, tagged, object, ret, args, source_type = nil, source_name = nil) ⇒ Object
Create a new event and add it to the event set.
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
17 18 19 |
# File 'lib/contrast/agent/assess/property/evented.rb', line 17 def event @event end |
Instance Method Details
#build_event(policy_node, tagged, object, ret, args, source_type = nil, source_name = nil) ⇒ Object
Create a new event and add it to the event set.
33 34 35 36 |
# File 'lib/contrast/agent/assess/property/evented.rb', line 33 def build_event policy_node, tagged, object, ret, args, source_type = nil, source_name = nil @event = Contrast::Agent::Assess::Events::EventFactory.build(policy_node, tagged, object, ret, args, source_type, source_name) report_sources(tagged, event) end |