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 not suitable for production usage.
Do not use it. You have been warned.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action (ChangeType).
-
#key ⇒ String
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.
246 247 248 249 250 251 252 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 246 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).
225 226 227 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 225 def action @action end |
#key ⇒ String (readonly)
Returns The key.
231 232 233 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 231 def key @key end |
#kind ⇒ String (readonly)
Returns The kind (ObjectKind).
228 229 230 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 228 def kind @kind end |
#object ⇒ Hash? (readonly)
Returns The object data (for PUT actions).
237 238 239 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 237 def object @object end |
#version ⇒ Integer (readonly)
Returns The version.
234 235 236 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 234 def version @version end |