From 9e155c269987d2e8767404c690ccb00a9d79dc95 Mon Sep 17 00:00:00 2001 From: Max VelDink Date: Wed, 7 Aug 2024 21:09:23 -0400 Subject: [PATCH] docs: add details example Signed-off-by: Max VelDink --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8deeb99..6ce7d6d 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ client = OpenFeature::SDK.build_client # fetching boolean value feature flag bool_value = client.fetch_boolean_value(flag_key: 'boolean_flag', default_value: false) +# a details method is also available for more information about the flag evaluation +# see `ResolutionDetails` for more info +bool_details = client.fetch_boolean_details(flag_key: 'boolean_flag', default_value: false) == + # fetching string value feature flag string_value = client.fetch_string_value(flag_key: 'string_flag', default_value: false)