Class: Datadog::AppSec::Instrumentation::Gateway::DataContainer
- Inherits:
-
Argument
- Object
- Argument
- Datadog::AppSec::Instrumentation::Gateway::DataContainer
- Defined in:
- lib/datadog/appsec/instrumentation/gateway/argument.rb
Overview
This class is used to pass arbitrary data to the event system with an option to tie it to a context.
NOTE: This class is a subject of elimination and will be removed when
the event system is refactored.
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data, context:) ⇒ DataContainer
constructor
A new instance of DataContainer.
Constructor Details
#initialize(data, context:) ⇒ DataContainer
Returns a new instance of DataContainer.
33 34 35 36 37 38 |
# File 'lib/datadog/appsec/instrumentation/gateway/argument.rb', line 33 def initialize(data, context:) super() @data = data @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
31 32 33 |
# File 'lib/datadog/appsec/instrumentation/gateway/argument.rb', line 31 def context @context end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
31 32 33 |
# File 'lib/datadog/appsec/instrumentation/gateway/argument.rb', line 31 def data @data end |