Skip to content

Commit 74f3a2c

Browse files
committed
base provider impl
1 parent 5fd1bd3 commit 74f3a2c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/devcycle-ruby-server-sdk/api/dev_cycle_provider.rb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,29 @@ def shutdown
1818
@client.close
1919
end
2020

21-
def fetch_boolean_value(flag_key:, default_value:, evaluation_context: nil) end
21+
def fetch_boolean_value(flag_key:, default_value:, evaluation_context: nil)
22+
# Retrieve a boolean value from provider source
23+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
24+
end
2225

2326
def fetch_string_value(flag_key:, default_value:, evaluation_context: nil)
24-
# Retrieve a string value from provider source
27+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
2528
end
2629

2730
def fetch_number_value(flag_key:, default_value:, evaluation_context: nil)
28-
# Retrieve a numeric value from provider source
31+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
2932
end
3033

3134
def fetch_integer_value(flag_key:, default_value:, evaluation_context: nil)
32-
# Retrieve a integer value from provider source
35+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
3336
end
3437

3538
def fetch_float_value(flag_key:, default_value:, evaluation_context: nil)
36-
# Retrieve a float value from provider source
39+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
3740
end
3841

3942
def fetch_object_value(flag_key:, default_value:, evaluation_context: nil)
40-
# Retrieve a hash value from provider source
43+
@client.variable_value(user_from_openfeature_context(evaluation_context), flag_key, default_value)
4144
end
4245

4346
def self.user_from_openfeature_context(context)

0 commit comments

Comments
 (0)