Module: LaunchDarkly::Interfaces::Hooks::Hook
- Defined in:
- lib/ldclient-rb/interfaces.rb
Overview
Mixin for extending SDK functionality via hooks.
All provided hook implementations MUST include this mixin. Hooks without this mixin will be ignored.
This mixin includes default implementations for all hook handlers. This allows LaunchDarkly to expand the list of hook handlers without breaking customer integrations.
Instance Method Summary collapse
-
#after_evaluation(evaluation_series_context, data, detail) ⇒ Hash
The after method is called during the execution of the variation method after the flag value has been determined.
-
#before_evaluation(evaluation_series_context, data) ⇒ Hash
The before method is called during the execution of a variation method before the flag value has been determined.
-
#metadata ⇒ Metadata
Get metadata about the hook implementation.
Instance Method Details
#after_evaluation(evaluation_series_context, data, detail) ⇒ Hash
The after method is called during the execution of the variation method after the flag value has been determined. The method is executed synchronously.
being performed. of the previous stage for a series. modified.
934 935 936 |
# File 'lib/ldclient-rb/interfaces.rb', line 934 def after_evaluation(evaluation_series_context, data, detail) data end |
#before_evaluation(evaluation_series_context, data) ⇒ Hash
The before method is called during the execution of a variation method before the flag value has been determined. The method is executed synchronously.
performed. This is not mutable. of the previous stage for a series. The input record should not be modified.
918 919 920 |
# File 'lib/ldclient-rb/interfaces.rb', line 918 def before_evaluation(evaluation_series_context, data) data end |