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 not suitable for production usage.

Do not use it. You have been warned.

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:



614
615
616
617
618
619
620
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 614

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:



596
597
598
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 596

def change_set
  @change_set
end

#environment_idString? (readonly)

Returns The environment ID.

Returns:

  • (String, nil)

    The environment ID



605
606
607
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 605

def environment_id
  @environment_id
end

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

Returns Error information.

Returns:



599
600
601
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 599

def error
  @error
end

#revert_to_fdv1Boolean (readonly)

Returns Whether to revert to FDv1.

Returns:

  • (Boolean)

    Whether to revert to FDv1



602
603
604
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 602

def revert_to_fdv1
  @revert_to_fdv1
end

#stateSymbol (readonly)

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

Returns:



593
594
595
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 593

def state
  @state
end