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.

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:



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

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:



183
184
185
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 183

def action
  @action
end

#keySymbol (readonly)

Returns The key.

Returns:

  • (Symbol)

    The key



189
190
191
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 189

def key
  @key
end

#kindString (readonly)

Returns The kind (ObjectKind).

Returns:



186
187
188
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 186

def kind
  @kind
end

#objectHash? (readonly)

Returns The object data (for PUT actions).

Returns:

  • (Hash, nil)

    The object data (for PUT actions)



195
196
197
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 195

def object
  @object
end

#versionInteger (readonly)

Returns The version.

Returns:

  • (Integer)

    The version



192
193
194
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 192

def version
  @version
end