Class: LaunchDarkly::Interfaces::DataSystem::Basis

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/interfaces/data_system.rb

Overview

Basis represents the initial payload of data that a data source can provide.

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 Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(change_set:, persist:, environment_id: nil) ⇒ Basis

Returns a new instance of Basis.

Parameters:

  • change_set (ChangeSet)

    The change set

  • persist (Boolean)

    Whether to persist

  • environment_id (String, nil) (defaults to: nil)

    The environment ID



283
284
285
286
287
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 283

def initialize(change_set:, persist:, environment_id: nil)
  @change_set = change_set
  @persist = persist
  @environment_id = environment_id
end

Instance Attribute Details

#change_setChangeSet (readonly)

Returns The change set.

Returns:



270
271
272
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 270

def change_set
  @change_set
end

#environment_idString? (readonly)

Returns The environment ID.

Returns:

  • (String, nil)

    The environment ID



276
277
278
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 276

def environment_id
  @environment_id
end

#persistBoolean (readonly)

Returns Whether to persist.

Returns:

  • (Boolean)

    Whether to persist



273
274
275
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 273

def persist
  @persist
end