Class: FeatureHub::Sdk::InternalFeatureRepository
- Inherits:
-
Object
- Object
- FeatureHub::Sdk::InternalFeatureRepository
- Defined in:
- lib/feature_hub/sdk/internal_feature_repository.rb,
sig/feature_hub/featurehub.rbs
Overview
surface features of a repository that must be implemented for any repository wrapper
Direct Known Subclasses
Instance Method Summary collapse
- #apply(_strategies, _key, _feature_id, _context) ⇒ Applied
- #feature(_key) ⇒ FeatureStateHolder?
- #find_interceptor(_feature_key, _feature_state = nil) ⇒ [bool, (bool? | String? | Float?)]
- #not_ready! ⇒ void
- #notify(status, data, source = "unknown") ⇒ void
- #ready? ⇒ Boolean
- #value(_key, default_value = nil, _attrs = nil) ⇒ bool?, ...
Instance Method Details
#apply(_strategies, _key, _feature_id, _context) ⇒ Applied
25 26 27 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 25 def apply(_strategies, _key, _feature_id, _context) Applied.new(false, nil) end |
#feature(_key) ⇒ FeatureStateHolder?
7 8 9 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 7 def feature(_key) nil end |
#find_interceptor(_feature_key, _feature_state = nil) ⇒ [bool, (bool? | String? | Float?)]
15 16 17 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 15 def find_interceptor(_feature_key, _feature_state = nil) [false, nil] end |
#not_ready! ⇒ void
This method returns an undefined value.
23 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 23 def not_ready!; end |
#notify(status, data, source = "unknown") ⇒ void
This method returns an undefined value.
29 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 29 def notify(status, data, source = "unknown"); end |
#ready? ⇒ Boolean
19 20 21 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 19 def ready? false end |
#value(_key, default_value = nil, _attrs = nil) ⇒ bool?, ...
11 12 13 |
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 11 def value(_key, default_value = nil, _attrs = nil) default_value end |