Class: Datadog::AppSec::SecurityEngine::Result::Base
- Inherits:
-
Object
- Object
- Datadog::AppSec::SecurityEngine::Result::Base
- Defined in:
- lib/datadog/appsec/security_engine/result.rb
Overview
A generic result without indication of its type.
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#derivatives ⇒ Object
readonly
Returns the value of attribute derivatives.
-
#duration_ext_ns ⇒ Object
readonly
Returns the value of attribute duration_ext_ns.
-
#duration_ns ⇒ Object
readonly
Returns the value of attribute duration_ns.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(events:, actions:, derivatives:, timeout:, duration_ns:, duration_ext_ns:) ⇒ Base
constructor
A new instance of Base.
- #match? ⇒ Boolean
- #timeout? ⇒ Boolean
Constructor Details
#initialize(events:, actions:, derivatives:, timeout:, duration_ns:, duration_ext_ns:) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 18 19 20 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 12 def initialize(events:, actions:, derivatives:, timeout:, duration_ns:, duration_ext_ns:) @events = events @actions = actions @derivatives = derivatives @timeout = timeout @duration_ns = duration_ns @duration_ext_ns = duration_ext_ns end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def actions @actions end |
#derivatives ⇒ Object (readonly)
Returns the value of attribute derivatives.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def derivatives @derivatives end |
#duration_ext_ns ⇒ Object (readonly)
Returns the value of attribute duration_ext_ns.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def duration_ext_ns @duration_ext_ns end |
#duration_ns ⇒ Object (readonly)
Returns the value of attribute duration_ns.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def duration_ns @duration_ns end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def events @events end |
Instance Method Details
#match? ⇒ Boolean
26 27 28 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 26 def match? raise NotImplementedError end |
#timeout? ⇒ Boolean
22 23 24 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 22 def timeout? !!@timeout end |