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 not suitable for production usage.

Do not use it. You have been warned.

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:



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

#actionString (readonly)

Returns:



225
226
227
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 225

def action
  @action
end

#keyString (readonly)

Returns The key.

Returns:

  • (String)

    The key



231
232
233
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 231

def key
  @key
end

#kindString (readonly)

Returns The kind (ObjectKind).

Returns:



228
229
230
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 228

def kind
  @kind
end

#objectHash? (readonly)

Returns The object data (for PUT actions).

Returns:

  • (Hash, nil)

    The object data (for PUT actions)



237
238
239
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 237

def object
  @object
end

#versionInteger (readonly)

Returns The version.

Returns:

  • (Integer)

    The version



234
235
236
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 234

def version
  @version
end