class OpenFeature::Client

Defined in:

openfeature/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(provider : Provider, ectx : EvaluationContext | Nil = nil) #

[View source]

Instance Method Detail

def add_handler(event : ProviderEvents, &handler : Handler) #

[View source]
def boolean_details(flag_key : String, default : Bool = true, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : FlagEvaluationDetails(Bool) #

[View source]
def boolean_value(flag_key : String, default : Bool = true, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : Bool #

[View source]
def evaluation_context : EvaluationContext #

[View source]
def metadata : ClientMetadata #

[View source]
def number_details(flag_key : String, default : Number = 0, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : FlagEvaluationDetails(Number) #

[View source]
def number_value(flag_key : String, default : Number = 0, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : Number #

[View source]
def object_details(flag_key : String, default = nil, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) #

[View source]
def object_value(flag_key : String, default = nil, *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) #

[View source]
def provider : Provider #

[View source]
def string_details(flag_key : String, default : String = "", *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : FlagEvaluationDetails(String) #

[View source]
def string_value(flag_key : String, default : String = "", *, context ctx : EvaluationContext | Nil = nil, options : EvaluationOptions | Nil = nil) : String #

[View source]