Class: LaunchDarkly::Interfaces::DataSystem::Change

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(action:, kind:, key:, version:, object: nil) ⇒ Change

Returns a new instance of Change.

Parameters:



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

#actionString (readonly)

Returns:



204
205
206
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 204

def action
  @action
end

#keySymbol (readonly)

Returns The key.

Returns:

  • (Symbol)

    The key



210
211
212
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 210

def key
  @key
end

#kindString (readonly)

Returns The kind (ObjectKind).

Returns:



207
208
209
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 207

def kind
  @kind
end

#objectHash? (readonly)

Returns The object data (for PUT actions).

Returns:

  • (Hash, nil)

    The object data (for PUT actions)



216
217
218
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 216

def object
  @object
end

#versionInteger (readonly)

Returns The version.

Returns:

  • (Integer)

    The version



213
214
215
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 213

def version
  @version
end