Module: LaunchDarkly::Interfaces::DataSystem::Initializer

Included in:
LaunchDarkly::Impl::Integrations::FileDataSourceV2
Defined in:
lib/ldclient-rb/interfaces/data_system.rb

Overview

Initializer represents a component capable of retrieving a single data result.

This type is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode

Instance Method Summary collapse

Instance Method Details

#fetch(selector_store) ⇒ LaunchDarkly::Result<Basis, String>

Retrieves the initial data set for the data source.

Parameters:

Returns:

Raises:

  • (NotImplementedError)


661
662
663
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 661

def fetch(selector_store)
  raise NotImplementedError, "#{self.class} must implement #fetch"
end

#nameString

Returns the name of the initializer.

Returns:

  • (String)

Raises:

  • (NotImplementedError)


651
652
653
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 651

def name
  raise NotImplementedError, "#{self.class} must implement #name"
end