class OpenFeature::Providers::InMemory

Defined in:

openfeature/providers/in_memory.cr

Constructors

Instance Method Summary

Instance methods inherited from class OpenFeature::Provider

add_client(client : Client) add_client, evaluation_context : EvaluationContext evaluation_context, metadata : Metadata metadata, name : String name, remove_client(client : Client) remove_client, resolve_boolean_value(flag_key : FlagKey, default : Bool = true, ctx : EvaluationContext | Nil = nil) : ResolutionDetails resolve_boolean_value, resolve_number_value(flag_key : FlagKey, default : Number = 0, ctx : EvaluationContext | Nil = nil) : ResolutionDetails resolve_number_value, resolve_object_value(flag_key : FlagKey, default : Structure, ctx : EvaluationContext | Nil = nil) : ResolutionDetails resolve_object_value, resolve_string_value(flag_key : FlagKey, default : String = "", ctx : EvaluationContext | Nil = nil) : ResolutionDetails resolve_string_value, state : ProviderEvent state

Constructor methods inherited from class OpenFeature::Provider

new(name : String, *, evaluation_context ectx : EvaluationContext | Nil = nil, metadata md : Metadata | Nil = nil, hooks : Hash(String, Array(OpenFeature::Hook)) = Hash(String, Array(Hook)).new) new

Constructor Detail

def self.new(flags : Metadata = Metadata.new) #

[View source]

Instance Method Detail

def flags : Metadata #

[View source]
def flags=(new_flags : Metadata) #

[View source]
def resolve_boolean_value(flag_key : FlagKey, default : Bool = true, ctx : EvaluationContext | Nil = nil) : ResolutionDetails #

[View source]
def resolve_number_value(flag_key : FlagKey, default : Number = 0, ctx : EvaluationContext | Nil = nil) : ResolutionDetails #

[View source]
def resolve_object_value(flag_key : FlagKey, default : Structure, ctx : EvaluationContext | Nil = nil) : ResolutionDetails #

[View source]
def resolve_string_value(flag_key : FlagKey, default : String = "", ctx : EvaluationContext | Nil = nil) : ResolutionDetails #

[View source]