Class: LaunchDarkly::Interfaces::FlagValueChange

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/interfaces.rb

Overview

Change event fired when the evaluated value for the specified flag key has changed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, old_value, new_value) ⇒ FlagValueChange

Returns a new instance of FlagValueChange.

Parameters:

  • key (Symbol)
  • old_value (Object)
  • new_value (Object)


263
264
265
266
267
# File 'lib/ldclient-rb/interfaces.rb', line 263

def initialize(key, old_value, new_value)
  @key = key
  @old_value = old_value
  @new_value = new_value
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



256
257
258
# File 'lib/ldclient-rb/interfaces.rb', line 256

def key
  @key
end

#new_valueObject

Returns the value of attribute new_value.



258
259
260
# File 'lib/ldclient-rb/interfaces.rb', line 258

def new_value
  @new_value
end

#old_valueObject

Returns the value of attribute old_value.



257
258
259
# File 'lib/ldclient-rb/interfaces.rb', line 257

def old_value
  @old_value
end