Class: LaunchDarkly::Interfaces::DataSystem::Update
- Inherits:
-
Object
- Object
- LaunchDarkly::Interfaces::DataSystem::Update
- 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
-
#change_set ⇒ ChangeSet?
readonly
The change set.
-
#environment_id ⇒ String?
readonly
The environment ID.
-
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo?
readonly
Error information.
-
#revert_to_fdv1 ⇒ Boolean
readonly
Whether to revert to FDv1.
-
#state ⇒ Symbol
readonly
The data source state (LaunchDarkly::Interfaces::DataSource::Status).
Instance Method Summary collapse
-
#initialize(state:, change_set: nil, error: nil, revert_to_fdv1: false, environment_id: nil) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(state:, change_set: nil, error: nil, revert_to_fdv1: false, environment_id: nil) ⇒ Update
Returns a new instance of Update.
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_set ⇒ ChangeSet? (readonly)
Returns The change set.
596 597 598 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 596 def change_set @change_set end |
#environment_id ⇒ String? (readonly)
Returns The environment ID.
605 606 607 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 605 def environment_id @environment_id end |
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo? (readonly)
Returns Error information.
599 600 601 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 599 def error @error end |
#revert_to_fdv1 ⇒ Boolean (readonly)
Returns 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 |
#state ⇒ Symbol (readonly)
Returns The data source state (LaunchDarkly::Interfaces::DataSource::Status).
593 594 595 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 593 def state @state end |