Class: LaunchDarkly::Impl::DataSystem::Update Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::DataSystem::Update
- Defined in:
- lib/ldclient-rb/impl/data_system.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Update represents the results of a synchronizer’s ongoing sync method.
Instance Attribute Summary collapse
-
#change_set ⇒ ChangeSet?
readonly
private
The change set if available.
-
#environment_id ⇒ String?
readonly
private
The environment ID if available.
-
#error ⇒ LaunchDarkly::Interfaces::DataSource::ErrorInfo?
readonly
private
Error information if applicable.
-
#revert_to_fdv1 ⇒ Boolean
readonly
private
Whether to revert to FDv1.
-
#state ⇒ Symbol
readonly
private
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
private
A new instance of Update.
Constructor Details
#initialize(state:, change_set: nil, error: nil, revert_to_fdv1: false, environment_id: nil) ⇒ Update
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The state of the data source.
242 243 244 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 242 def state @state end |