Class: ConfigCat::LocalFileFlagOverrides

Inherits:
FlagOverrides show all
Defined in:
lib/configcat/localfiledatasource.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path, override_behaviour) ⇒ LocalFileFlagOverrides

Returns a new instance of LocalFileFlagOverrides.



7
8
9
10
# File 'lib/configcat/localfiledatasource.rb', line 7

def initialize(file_path, override_behaviour)
  @file_path = file_path
  @override_behaviour = override_behaviour
end

Instance Method Details

#create_data_source(log) ⇒ Object



12
13
14
# File 'lib/configcat/localfiledatasource.rb', line 12

def create_data_source(log)
  return LocalFileDataSource.new(@file_path, @override_behaviour, log)
end