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, #exclude_from_summaries, #sampling_ratio, #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, sampling_ratio = nil, exclude_from_summaries = false) ⇒ EvalEvent

Returns a new instance of EvalEvent.

Since:

  • 5.5.0



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/ldclient-rb/impl/event_types.rb', line 28

def initialize(timestamp, context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil,
  track_events = false, debug_until = nil, prereq_of = nil, sampling_ratio = nil, exclude_from_summaries = false)
  super(timestamp, context, sampling_ratio, exclude_from_summaries)
  @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



50
51
52
# File 'lib/ldclient-rb/impl/event_types.rb', line 50

def debug_until
  @debug_until
end

#defaultObject (readonly)

Since:

  • 5.5.0



48
49
50
# File 'lib/ldclient-rb/impl/event_types.rb', line 48

def default
  @default
end

#keyObject (readonly)

Since:

  • 5.5.0



43
44
45
# File 'lib/ldclient-rb/impl/event_types.rb', line 43

def key
  @key
end

#prereq_ofObject (readonly)

Since:

  • 5.5.0



51
52
53
# File 'lib/ldclient-rb/impl/event_types.rb', line 51

def prereq_of
  @prereq_of
end

#reasonObject (readonly)

Since:

  • 5.5.0



47
48
49
# File 'lib/ldclient-rb/impl/event_types.rb', line 47

def reason
  @reason
end

#track_eventsObject (readonly)

Since:

  • 5.5.0



49
50
51
# File 'lib/ldclient-rb/impl/event_types.rb', line 49

def track_events
  @track_events
end

#valueObject (readonly)

Since:

  • 5.5.0



46
47
48
# File 'lib/ldclient-rb/impl/event_types.rb', line 46

def value
  @value
end

#variationObject (readonly)

Since:

  • 5.5.0



45
46
47
# File 'lib/ldclient-rb/impl/event_types.rb', line 45

def variation
  @variation
end

#versionObject (readonly)

Since:

  • 5.5.0



44
45
46
# File 'lib/ldclient-rb/impl/event_types.rb', line 44

def version
  @version
end