Module: Contrast::Agent::Assess::Events::EventFactory
- Defined in:
- lib/contrast/agent/assess/events/event_factory.rb
Overview
This module returns the event type appropriate to the given Node
Class Method Summary collapse
Class Method Details
.build(policy_node, tagged, object, ret, args, source_type = nil, source_name = nil) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/contrast/agent/assess/events/event_factory.rb', line 13 def self.build policy_node, tagged, object, ret, args, source_type = nil, source_name = nil case policy_node when Contrast::Agent::Assess::Policy::SourceNode Contrast::Agent::Assess::Events::SourceEvent.new(policy_node, tagged, object, ret, args, source_type, source_name) when Contrast::Agent::Assess::Policy::PolicyNode Contrast::Agent::Assess::ContrastEvent.new(policy_node, tagged, object, ret, args) end end |