Class: Contrast::Agent::Assess::Events::EventData

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/assess/events/event_data.rb

Overview

this class will gather and build event

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_node, tagged, object, ret, args) ⇒ EventData

Group event data together

Parameters:

  • policy_node (Contrast::Agent::Assess::Policy::PolicyNode, nil)

    the node that governs this event

  • tagged (Object, nil)

    the Target to which this event pertains

  • object (Object, nil)

    the Object on which the method was invoked

  • ret (Object, nil)

    the Return of the invoked method

  • args (Array<Object>, nil)

    the Arguments with which the method was invoked



19
20
21
22
23
24
25
# File 'lib/contrast/agent/assess/events/event_data.rb', line 19

def initialize policy_node, tagged, object, ret, args
  @policy_node = policy_node
  @tagged = tagged
  @object = object
  @ret = ret
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



10
11
12
# File 'lib/contrast/agent/assess/events/event_data.rb', line 10

def args
  @args
end

#objectObject (readonly)

Returns the value of attribute object.



10
11
12
# File 'lib/contrast/agent/assess/events/event_data.rb', line 10

def object
  @object
end

#policy_nodeObject (readonly)

Returns the value of attribute policy_node.



10
11
12
# File 'lib/contrast/agent/assess/events/event_data.rb', line 10

def policy_node
  @policy_node
end

#retObject (readonly)

Returns the value of attribute ret.



10
11
12
# File 'lib/contrast/agent/assess/events/event_data.rb', line 10

def ret
  @ret
end

#taggedObject (readonly)

Returns the value of attribute tagged.



10
11
12
# File 'lib/contrast/agent/assess/events/event_data.rb', line 10

def tagged
  @tagged
end