Class: LaunchDarkly::Impl::DataSystem::Update
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::DataSystem::Update
- Defined in:
- lib/ldclient-rb/impl/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 if available.
-
#environment_id ⇒ String?
readonly
The environment ID if available.
-
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo?
readonly
Error information if applicable.
-
#revert_to_fdv1 ⇒ Boolean
readonly
Whether to revert to FDv1.
-
#state ⇒ Symbol
readonly
The state of the data source.
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.
263 264 265 266 267 268 269 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 263 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 if available.
245 246 247 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 245 def change_set @change_set end |
#environment_id ⇒ String? (readonly)
Returns The environment ID if available.
254 255 256 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 254 def environment_id @environment_id end |
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo? (readonly)
Returns Error information if applicable.
248 249 250 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 248 def error @error end |
#revert_to_fdv1 ⇒ Boolean (readonly)
Returns Whether to revert to FDv1.
251 252 253 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 251 def revert_to_fdv1 @revert_to_fdv1 end |
#state ⇒ Symbol (readonly)
Returns The state of the data source.
242 243 244 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 242 def state @state end |