Class: LaunchDarkly::Impl::EvalEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ldclient-rb/impl/event_types.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Attributes inherited from Event

#context, #timestamp

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil, track_events = false, debug_until = nil, prereq_of = nil) ⇒ EvalEvent

Returns a new instance of EvalEvent.

Since:

  • 5.5.0



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/ldclient-rb/impl/event_types.rb', line 18

def initialize(timestamp, context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil,
  track_events = false, debug_until = nil, prereq_of = nil)
  super(timestamp, context)
  @key = key
  @version = version
  @variation = variation
  @value = value
  @reason = reason
  @default = default
  # avoid setting rarely-used attributes if they have no value - this saves a little space per instance
  @track_events = track_events if track_events
  @debug_until = debug_until if debug_until
  @prereq_of = prereq_of if prereq_of
end

Instance Attribute Details

#debug_untilObject (readonly)

Since:

  • 5.5.0



40
41
42
# File 'lib/ldclient-rb/impl/event_types.rb', line 40

def debug_until
  @debug_until
end

#defaultObject (readonly)

Since:

  • 5.5.0



38
39
40
# File 'lib/ldclient-rb/impl/event_types.rb', line 38

def default
  @default
end

#keyObject (readonly)

Since:

  • 5.5.0



33
34
35
# File 'lib/ldclient-rb/impl/event_types.rb', line 33

def key
  @key
end

#prereq_ofObject (readonly)

Since:

  • 5.5.0



41
42
43
# File 'lib/ldclient-rb/impl/event_types.rb', line 41

def prereq_of
  @prereq_of
end

#reasonObject (readonly)

Since:

  • 5.5.0



37
38
39
# File 'lib/ldclient-rb/impl/event_types.rb', line 37

def reason
  @reason
end

#track_eventsObject (readonly)

Since:

  • 5.5.0



39
40
41
# File 'lib/ldclient-rb/impl/event_types.rb', line 39

def track_events
  @track_events
end

#valueObject (readonly)

Since:

  • 5.5.0



36
37
38
# File 'lib/ldclient-rb/impl/event_types.rb', line 36

def value
  @value
end

#variationObject (readonly)

Since:

  • 5.5.0



35
36
37
# File 'lib/ldclient-rb/impl/event_types.rb', line 35

def variation
  @variation
end

#versionObject (readonly)

Since:

  • 5.5.0



34
35
36
# File 'lib/ldclient-rb/impl/event_types.rb', line 34

def version
  @version
end