Class: LaunchDarkly::Interfaces::FlagValueChange

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/interfaces/flag_tracker.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)


99
100
101
102
103
# File 'lib/ldclient-rb/interfaces/flag_tracker.rb', line 99

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.



92
93
94
# File 'lib/ldclient-rb/interfaces/flag_tracker.rb', line 92

def key
  @key
end

#new_valueObject

Returns the value of attribute new_value.



94
95
96
# File 'lib/ldclient-rb/interfaces/flag_tracker.rb', line 94

def new_value
  @new_value
end

#old_valueObject

Returns the value of attribute old_value.



93
94
95
# File 'lib/ldclient-rb/interfaces/flag_tracker.rb', line 93

def old_value
  @old_value
end