Class: LaunchDarkly::Interfaces::DataSystem::Change
- Inherits:
-
Object
- Object
- LaunchDarkly::Interfaces::DataSystem::Change
- Defined in:
- lib/ldclient-rb/interfaces/data_system.rb
Overview
Change represents a change to a piece of data, such as an update or deletion.
This type is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. launchdarkly.com/docs/sdk/features/data-saving-mode
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action (ChangeType).
-
#key ⇒ Symbol
readonly
The key.
-
#kind ⇒ String
readonly
The kind (ObjectKind).
-
#object ⇒ Hash?
readonly
The object data (for PUT actions).
-
#version ⇒ Integer
readonly
The version.
Instance Method Summary collapse
-
#initialize(action:, kind:, key:, version:, object: nil) ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize(action:, kind:, key:, version:, object: nil) ⇒ Change
Returns a new instance of Change.
225 226 227 228 229 230 231 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 225 def initialize(action:, kind:, key:, version:, object: nil) @action = action @kind = kind @key = key @version = version @object = object end |
Instance Attribute Details
#action ⇒ String (readonly)
Returns The action (LaunchDarkly::Interfaces::DataSystem::ChangeType).
204 205 206 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 204 def action @action end |
#key ⇒ Symbol (readonly)
Returns The key.
210 211 212 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 210 def key @key end |
#kind ⇒ String (readonly)
Returns The kind (ObjectKind).
207 208 209 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 207 def kind @kind end |
#object ⇒ Hash? (readonly)
Returns The object data (for PUT actions).
216 217 218 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 216 def object @object end |
#version ⇒ Integer (readonly)
Returns The version.
213 214 215 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 213 def version @version end |