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.
Constructor Details
#initialize(_configuration) ⇒ NoopEvaluator
Returns a new instance of NoopEvaluator.
10 11 12 |
# File 'lib/datadog/open_feature/noop_evaluator.rb', line 10 def initialize(_configuration) # no-op end |
Instance Method Details
#get_assignment(_flag_key, default_value:, context:, expected_type:) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/datadog/open_feature/noop_evaluator.rb', line 14 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 |