Class: LaunchDarkly::Integrations::FileDataSourceV2Builder
- Inherits:
-
Object
- Object
- LaunchDarkly::Integrations::FileDataSourceV2Builder
- Defined in:
- lib/ldclient-rb/integrations/file_data.rb
Overview
Builder for FileDataSourceV2.
Instance Method Summary collapse
- #build(_sdk_key, config) ⇒ Object
-
#initialize(paths, poll_interval) ⇒ FileDataSourceV2Builder
constructor
A new instance of FileDataSourceV2Builder.
Constructor Details
#initialize(paths, poll_interval) ⇒ FileDataSourceV2Builder
Returns a new instance of FileDataSourceV2Builder.
161 162 163 164 |
# File 'lib/ldclient-rb/integrations/file_data.rb', line 161 def initialize(paths, poll_interval) @paths = paths @poll_interval = poll_interval end |
Instance Method Details
#build(_sdk_key, config) ⇒ Object
166 167 168 169 170 171 172 |
# File 'lib/ldclient-rb/integrations/file_data.rb', line 166 def build(_sdk_key, config) Impl::Integrations::FileDataSourceV2.new( config.logger, paths: @paths, poll_interval: @poll_interval ) end |