Class: OpenFeatureSorbet::HookContext
- Inherits:
-
T::Struct
- Object
- T::Struct
- OpenFeatureSorbet::HookContext
- Extended by:
- T::Generic, T::Sig
- Includes:
- T::Struct::ActsAsComparable
- Defined in:
- lib/open_feature_sorbet/hook_context.rb
Overview
See openfeature.dev/specification/sections/hooks#41-hook-context See Requirement 4.1.1, 4.1.3, 4.1.4 TODO: Requirement 4.1.2
Constant Summary collapse
- Value =
type_member
Instance Method Summary collapse
Instance Method Details
#with_new_evaluation_context(new_context) ⇒ Object
24 25 26 27 28 |
# File 'lib/open_feature_sorbet/hook_context.rb', line 24 def with_new_evaluation_context(new_context) OpenFeatureSorbet::HookContext.new(flag_key: flag_key, flag_type: flag_type, default_value: default_value, evaluation_context: new_context, client_metadata: , provider_metadata: ) end |