Class: ConfigCat::LocalDictionaryDataSource

Inherits:
OverrideDataSource show all
Defined in:
lib/configcat/localdictionarydatasource.rb

Instance Method Summary collapse

Methods inherited from OverrideDataSource

#get_behaviour

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_overridesObject



16
17
18
# File 'lib/configcat/localdictionarydatasource.rb', line 16

def get_overrides()
  return @_settings
end