Class: Datadog::OpenFeature::NoopEvaluator
- Inherits:
-
Object
- Object
- Datadog::OpenFeature::NoopEvaluator
- Defined in:
- lib/datadog/open_feature/noop_evaluator.rb
Overview
This class is a noop interface of evaluation logic
Instance Method Summary collapse
- #get_assignment(_flag_key, default_value:, context:, expected_type:) ⇒ Object
-
#initialize(_configuration) ⇒ NoopEvaluator
constructor
A new instance of NoopEvaluator.
-
#observe_full_evaluation_data ⇒ Object
Privacy-preserving default before configuration is present.
Constructor Details
#initialize(_configuration) ⇒ NoopEvaluator
Returns a new instance of NoopEvaluator.
15 16 17 |
# File 'lib/datadog/open_feature/noop_evaluator.rb', line 15 def initialize(_configuration) # no-op end |
Instance Method Details
#get_assignment(_flag_key, default_value:, context:, expected_type:) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/datadog/open_feature/noop_evaluator.rb', line 19 def get_assignment(_flag_key, default_value:, context:, expected_type:) ResolutionDetails.new( value: default_value, log?: false, error?: true, error_code: Ext::PROVIDER_NOT_READY, error_message: "Waiting for flags configuration", reason: Ext::ERROR ) end |
#observe_full_evaluation_data ⇒ Object
Privacy-preserving default before configuration is present.
11 12 13 |
# File 'lib/datadog/open_feature/noop_evaluator.rb', line 11 def observe_full_evaluation_data false end |