From 8f9851af68da432264dd58a4749dcb399148d503 Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Thu, 15 Dec 2022 18:39:53 -0500 Subject: [PATCH] docs: fix code in README and fix code style (#42) Signed-off-by: Josh Nichols Co-authored-by: Jose Miguel Colella --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1ede243..1acf5fd 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,17 @@ end client = OpenFeature::SDK.build_client(name: "my-app") # fetching boolean value feature flag -bool_value = client.fetch_boolean_value(flag_key: 'boolean_flag', default_value: false); +bool_value = client.fetch_boolean_value(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); +string_value = client.fetch_string_value(flag_key: 'string_flag', default_value: false) # fetching number value feature flag -float_value = client.fetch_number_value(flag_key: 'number_value', default_value: 1.0); -integer_value = client.fetch_number_value(flag_key: 'number_value', default_value: 1); +float_value = client.fetch_number_value(flag_key: 'number_value', default_value: 1.0) +integer_value = client.fetch_number_value(flag_key: 'number_value', default_value: 1) # get an object value -object = client.fetch_object_value('object_value', JSON.dump({ name: 'object'})); +object = client.fetch_object_value(flag_key: 'object_value', default_value: JSON.dump({ name: 'object'})) ``` For complete documentation, visit: https://docs.openfeature.dev/docs/category/concepts