Class: LaunchDarkly::Integrations::TestDataV2Builder
- Inherits:
-
Object
- Object
- LaunchDarkly::Integrations::TestDataV2Builder
- 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
-
#build(sdk_key, config) ⇒ LaunchDarkly::Impl::Integrations::TestData::TestDataSourceV2
Builds the data source.
-
#initialize(test_data) ⇒ TestDataV2Builder
constructor
A new instance of TestDataV2Builder.
Constructor Details
#initialize(test_data) ⇒ TestDataV2Builder
Returns a new instance of 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 |