Sha256: 3468e88e95d44df9b137e5cb98e1a548f5a132737c2421bee17e1658f3830991
Contents?: true
Size: 994 Bytes
Versions: 7
Compression:
Stored size: 994 Bytes
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true cs__scoped_require 'contrast/agent/assess/contrast_event' cs__scoped_require 'contrast/agent/assess/events/source_event' module Contrast module Agent module Assess module Events # This module returns the event type appropriate to the given Node module EventFactory 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 end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems