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

Overview

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

Instance Method Summary collapse

Instance Method Details

#fetch(selector_store) ⇒ FetchResult

Retrieves the initial data set for the data source.

If the LaunchDarkly server has instructed the SDK to fall back to the FDv1 protocol, the returned FetchResult#fallback_to_fdv1 is true. The wrapped result may still carry a successful Basis when the directive accompanied a valid payload, in which case callers should apply the payload before switching protocols.

Parameters:

Returns:

Raises:

  • (NotImplementedError)


667
668
669
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 667

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