Class: ConfigCat::LocalDictionaryDataSource
- Inherits:
-
OverrideDataSource
- Object
- OverrideDataSource
- ConfigCat::LocalDictionaryDataSource
- Defined in:
- lib/configcat/localdictionarydatasource.rb
Instance Method Summary collapse
- #get_overrides ⇒ Object
-
#initialize(source, override_behaviour) ⇒ LocalDictionaryDataSource
constructor
A new instance of LocalDictionaryDataSource.
Methods inherited from OverrideDataSource
Constructor Details
#initialize(source, override_behaviour) ⇒ LocalDictionaryDataSource
Returns a new instance of LocalDictionaryDataSource.
7 8 9 10 11 12 13 14 |
# File 'lib/configcat/localdictionarydatasource.rb', line 7 def initialize(source, override_behaviour) super(override_behaviour) dictionary = {} source.each do |key, value| dictionary[key] = {VALUE => value} end @_settings = {FEATURE_FLAGS => dictionary} end |
Instance Method Details
#get_overrides ⇒ Object
16 17 18 |
# File 'lib/configcat/localdictionarydatasource.rb', line 16 def get_overrides() return @_settings end |