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.



18
19
20
21
22
23
24
# File 'lib/configcat/localdictionarydatasource.rb', line 18

def initialize(source, override_behaviour)
  super(override_behaviour)
  @_settings = {}
  source.each do |key, value|
    @_settings[key] = { VALUE => value }
  end
end

Instance Method Details

#get_overridesObject



26
27
28
# File 'lib/configcat/localdictionarydatasource.rb', line 26

def get_overrides
  return @_settings
end