Class: Datadog::Core::Telemetry::V1::Product
- Inherits:
-
Object
- Object
- Datadog::Core::Telemetry::V1::Product
- Defined in:
- lib/datadog/core/telemetry/v1/product.rb
Overview
Describes attributes for products object
Instance Attribute Summary collapse
-
#appsec ⇒ Object
readonly
Returns the value of attribute appsec.
-
#profiler ⇒ Object
readonly
Returns the value of attribute profiler.
Instance Method Summary collapse
-
#initialize(appsec: nil, profiler: nil) ⇒ Product
constructor
A new instance of Product.
- #to_h ⇒ Object
Constructor Details
#initialize(appsec: nil, profiler: nil) ⇒ Product
Returns a new instance of Product.
19 20 21 22 |
# File 'lib/datadog/core/telemetry/v1/product.rb', line 19 def initialize(appsec: nil, profiler: nil) @appsec = appsec @profiler = profiler end |
Instance Attribute Details
#appsec ⇒ Object (readonly)
Returns the value of attribute appsec.
13 14 15 |
# File 'lib/datadog/core/telemetry/v1/product.rb', line 13 def appsec @appsec end |
#profiler ⇒ Object (readonly)
Returns the value of attribute profiler.
13 14 15 |
# File 'lib/datadog/core/telemetry/v1/product.rb', line 13 def profiler @profiler end |
Instance Method Details
#to_h ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/datadog/core/telemetry/v1/product.rb', line 24 def to_h hash = { appsec: @appsec, profiler: @profiler } hash.compact! hash end |