Class: Datadog::AppSec::Instrumentation::Gateway::DataContainer

Inherits:
Argument
  • Object
show all
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

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



31
32
33
# File 'lib/datadog/appsec/instrumentation/gateway/argument.rb', line 31

def context
  @context
end

#dataObject (readonly)

Returns the value of attribute data.



31
32
33
# File 'lib/datadog/appsec/instrumentation/gateway/argument.rb', line 31

def data
  @data
end