class OpenFeature::EvaluationOptions

Overview

Additional options that allow to define hooks and hook options for an invocation.

Defined in:

openfeature/evaluation.cr
openfeature/hooks/proc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(hook_hints : Metadata | Nil = nil) #

[View source]
def self.new(hooks : Array(Hook), hook_hints : Metadata | Nil = nil) #

[View source]

Instance Method Detail

def add_hook(h : Hook) #

[View source]
def add_proc_hook(*, before : BeforeStageHook | Nil = nil, after : AfterStageHook | Nil = nil, error : ErrorStageHook | Nil = nil, finally : FinallyStageHook | Nil = nil) #

Add proc based hook to invocation hooks


[View source]
def hook_hints : Metadata #

[View source]
def hook_hints=(hook_hints : Metadata) #

[View source]
def hooks : Array(Hook) #

[View source]
def hooks=(hooks : Array(Hook)) #

[View source]