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.
336 337 338 339 |
# File 'lib/ldclient-rb/integrations/file_data.rb', line 336 def initialize(paths, poll_interval) @paths = paths @poll_interval = poll_interval end |
Instance Method Details
#build(_sdk_key, config) ⇒ Object
341 342 343 344 345 346 347 |
# File 'lib/ldclient-rb/integrations/file_data.rb', line 341 def build(_sdk_key, config) Impl::Integrations::FileDataSourceV2.new( config.logger, paths: @paths, poll_interval: @poll_interval ) end |