Class: Contrast::Agent::Assess::Events::EventData
- Defined in:
- lib/contrast/agent/assess/events/event_data.rb
Overview
this class will gather and build event.
Instance Attribute Summary collapse
-
#args ⇒ Array<Object>?
readonly
The Arguments with which the method was invoked.
-
#object ⇒ Object?
readonly
The Object on which the method was invoked.
-
#policy_node ⇒ Contrast::Agent::Assess::Policy::PolicyNode?
readonly
The node that governs this event.
-
#ret ⇒ Object?
readonly
The Return of the invoked method.
-
#tagged ⇒ Object?
readonly
The Target to which this event pertains.
Instance Method Summary collapse
-
#initialize(policy_node, tagged, object, ret, args) ⇒ EventData
constructor
Group event data together.
Constructor Details
#initialize(policy_node, tagged, object, ret, args) ⇒ EventData
Group event data together
28 29 30 31 32 33 34 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 28 def initialize policy_node, tagged, object, ret, args @policy_node = policy_node @tagged = tagged @object = object @ret = ret @args = args end |
Instance Attribute Details
#args ⇒ Array<Object>? (readonly)
Returns the Arguments with which the method was invoked.
19 20 21 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 19 def args @args end |
#object ⇒ Object? (readonly)
Returns the Object on which the method was invoked.
15 16 17 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 15 def object @object end |
#policy_node ⇒ Contrast::Agent::Assess::Policy::PolicyNode? (readonly)
Returns the node that governs this event.
11 12 13 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 11 def policy_node @policy_node end |
#ret ⇒ Object? (readonly)
Returns the Return of the invoked method.
17 18 19 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 17 def ret @ret end |
#tagged ⇒ Object? (readonly)
Returns the Target to which this event pertains.
13 14 15 |
# File 'lib/contrast/agent/assess/events/event_data.rb', line 13 def tagged @tagged end |