Class: Datadog::Core::Configuration::ComponentsState
- Inherits:
-
Object
- Object
- Datadog::Core::Configuration::ComponentsState
- Defined in:
- lib/datadog/core/configuration/components_state.rb
Overview
Stores the state of component tree when replacing the tree.
Instance Method Summary collapse
- #di_implicitly_enabled? ⇒ Boolean
-
#initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false) ⇒ ComponentsState
constructor
A new instance of ComponentsState.
- #remote_started? ⇒ Boolean
- #telemetry_enabled? ⇒ Boolean
Constructor Details
#initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false) ⇒ ComponentsState
Returns a new instance of ComponentsState.
8 9 10 11 12 |
# File 'lib/datadog/core/configuration/components_state.rb', line 8 def initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false) @telemetry_enabled = !!telemetry_enabled @remote_started = !!remote_started @di_implicitly_enabled = !!di_implicitly_enabled end |
Instance Method Details
#di_implicitly_enabled? ⇒ Boolean
22 23 24 |
# File 'lib/datadog/core/configuration/components_state.rb', line 22 def di_implicitly_enabled? @di_implicitly_enabled end |
#remote_started? ⇒ Boolean
18 19 20 |
# File 'lib/datadog/core/configuration/components_state.rb', line 18 def remote_started? @remote_started end |
#telemetry_enabled? ⇒ Boolean
14 15 16 |
# File 'lib/datadog/core/configuration/components_state.rb', line 14 def telemetry_enabled? @telemetry_enabled end |