Class: FeatureHub::Sdk::InternalFeatureRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/feature_hub/sdk/internal_feature_repository.rb

Overview

surface features of a repository that must be implemented for any repository wrapper

Direct Known Subclasses

FeatureHubRepository

Instance Method Summary collapse

Instance Method Details

#apply(_strategies, _key, _feature_id, _context) ⇒ Object



21
22
23
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 21

def apply(_strategies, _key, _feature_id, _context)
  Applied.new(false, nil)
end

#feature(_key) ⇒ Object



7
8
9
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 7

def feature(_key)
  nil
end

#find_interceptor(_feature_value) ⇒ Object



11
12
13
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 11

def find_interceptor(_feature_value)
  nil
end

#not_ready!Object



19
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 19

def not_ready!; end

#notify(status, data) ⇒ Object



25
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 25

def notify(status, data); end

#ready?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/feature_hub/sdk/internal_feature_repository.rb', line 15

def ready?
  false
end