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.
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.
-
#fallback_to_fdv1 ⇒ Boolean
readonly
Whether the LaunchDarkly server has instructed the SDK to fall back to the FDv1 protocol (signalled via the ‘X-LD-FD-Fallback` response header).
-
#state ⇒ Symbol
readonly
The data source state (LaunchDarkly::Interfaces::DataSource::Status).
Instance Method Summary collapse
-
#initialize(state:, change_set: nil, error: nil, fallback_to_fdv1: false, environment_id: nil) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(state:, change_set: nil, error: nil, fallback_to_fdv1: false, environment_id: nil) ⇒ Update
Returns a new instance of Update.
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_set ⇒ ChangeSet? (readonly)
Returns The change set.
518 519 520 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 518 def change_set @change_set end |
#environment_id ⇒ String? (readonly)
Returns The environment ID.
528 529 530 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 528 def environment_id @environment_id end |
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo? (readonly)
Returns Error information.
521 522 523 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 521 def error @error end |
#fallback_to_fdv1 ⇒ Boolean (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).
525 526 527 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 525 def fallback_to_fdv1 @fallback_to_fdv1 end |
#state ⇒ Symbol (readonly)
Returns The data source state (LaunchDarkly::Interfaces::DataSource::Status).
515 516 517 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 515 def state @state end |