Class: LaunchDarkly::Interfaces::DataSystem::Update

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

Overview

Update represents the results of a synchronizer's ongoing sync method.

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(state:, change_set: nil, error: nil, revert_to_fdv1: false, environment_id: nil) ⇒ Update

Returns a new instance of Update.

Parameters:



575
576
577
578
579
580
581
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 575

def initialize(state:, change_set: nil, error: nil, revert_to_fdv1: false, environment_id: nil)
  @state = state
  @change_set = change_set
  @error = error
  @revert_to_fdv1 = revert_to_fdv1
  @environment_id = environment_id
end

Instance Attribute Details

#change_setChangeSet? (readonly)

Returns The change set.

Returns:



557
558
559
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 557

def change_set
  @change_set
end

#environment_idString? (readonly)

Returns The environment ID.

Returns:

  • (String, nil)

    The environment ID



566
567
568
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 566

def environment_id
  @environment_id
end

#errorLaunchDarkly::Interfaces::DataSource::ErrorInfo? (readonly)

Returns Error information.

Returns:



560
561
562
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 560

def error
  @error
end

#revert_to_fdv1Boolean (readonly)

Returns Whether to revert to FDv1.

Returns:

  • (Boolean)

    Whether to revert to FDv1



563
564
565
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 563

def revert_to_fdv1
  @revert_to_fdv1
end

#stateSymbol (readonly)

Returns The data source state (LaunchDarkly::Interfaces::DataSource::Status).

Returns:



554
555
556
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 554

def state
  @state
end