Class: OpenFeature::SDK::Contrib::Client

Inherits:
OpenFeature::SDK::Client
  • Object
show all
Defined in:
lib/open_feature/sdk/contrib/client.rb

Instance Method Summary collapse

Instance Method Details

#all_flagsObject



9
10
11
# File 'lib/open_feature/sdk/contrib/client.rb', line 9

def all_flags
  @provider.read_all_values_with_cache
end

#fetch_float_value(flag_key:, default_value:, evaluation_context: nil) ⇒ Object



13
14
15
16
# File 'lib/open_feature/sdk/contrib/client.rb', line 13

def fetch_float_value(flag_key:, default_value:, evaluation_context: nil)
  result = @provider.fetch_float_value(flag_key: flag_key, default_value: default_value, evaluation_context: evaluation_context)
  result.value
end

#fetch_raw_flag(flag_key:) ⇒ Object



18
19
20
# File 'lib/open_feature/sdk/contrib/client.rb', line 18

def fetch_raw_flag(flag_key:)
  @provider.fetch_raw_key(flag_key: flag_key)
end