Class: LaunchDarkly::Integrations::TestDataV2Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/integrations/test_data_v2.rb

Overview

Builder for TestDataV2 data sources (works for both initializers and synchronizers).

Instance Method Summary collapse

Constructor Details

#initialize(test_data) ⇒ TestDataV2Builder



237
238
239
# File 'lib/ldclient-rb/integrations/test_data_v2.rb', line 237

def initialize(test_data)
  @test_data = test_data
end

Instance Method Details

#build(sdk_key, config) ⇒ LaunchDarkly::Impl::Integrations::TestData::TestDataSourceV2

Builds the data source.



248
249
250
# File 'lib/ldclient-rb/integrations/test_data_v2.rb', line 248

def build(sdk_key, config)
  LaunchDarkly::Impl::Integrations::TestData::TestDataSourceV2.new(@test_data)
end