Class: Datadog::AppSec::Contrib::GraphQL::Gateway::Multiplex

Inherits:
Instrumentation::Gateway::Argument show all
Defined in:
lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb

Overview

Gateway Request argument. Normalized extration of data from Rack::Request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(multiplex) ⇒ Multiplex

Returns a new instance of Multiplex.



16
17
18
19
# File 'lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb', line 16

def initialize(multiplex)
  super()
  @multiplex = multiplex
end

Instance Attribute Details

#multiplexObject (readonly)

Returns the value of attribute multiplex.



14
15
16
# File 'lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb', line 14

def multiplex
  @multiplex
end

Instance Method Details

#argumentsObject



21
22
23
# File 'lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb', line 21

def arguments
  @arguments ||= build_arguments_hash
end

#queriesObject



25
26
27
# File 'lib/datadog/appsec/contrib/graphql/gateway/multiplex.rb', line 25

def queries
  @multiplex.queries
end