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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state:, change_set: nil, error: nil, fallback_to_fdv1: false, environment_id: nil) ⇒ Update

Returns a new instance of Update.

Parameters:



537
538
539
540
541
542
543
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 537

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

Instance Attribute Details

#change_setChangeSet? (readonly)

Returns The change set.

Returns:



518
519
520
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 518

def change_set
  @change_set
end

#environment_idString? (readonly)

Returns The environment ID.

Returns:

  • (String, nil)

    The environment ID



528
529
530
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 528

def environment_id
  @environment_id
end

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

Returns Error information.

Returns:



521
522
523
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 521

def error
  @error
end

#fallback_to_fdv1Boolean (readonly)

Returns Whether the LaunchDarkly server has instructed the SDK to fall back to the FDv1 protocol (signalled via the ‘X-LD-FD-Fallback` response header).

Returns:

  • (Boolean)

    Whether the LaunchDarkly server has instructed the SDK to fall back to the FDv1 protocol (signalled via the ‘X-LD-FD-Fallback` response header).



525
526
527
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 525

def fallback_to_fdv1
  @fallback_to_fdv1
end

#stateSymbol (readonly)

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

Returns:



515
516
517
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 515

def state
  @state
end