Class: LaunchDarkly::Impl::EvalEvent
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
Instance Attribute Summary collapse
- #debug_until ⇒ Object readonly
- #default ⇒ Object readonly
- #key ⇒ Object readonly
- #prereq_of ⇒ Object readonly
- #reason ⇒ Object readonly
- #track_events ⇒ Object readonly
- #value ⇒ Object readonly
- #variation ⇒ Object readonly
- #version ⇒ Object readonly
Attributes inherited from Event
#context, #exclude_from_summaries, #sampling_ratio, #timestamp
Instance Method Summary collapse
-
#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
constructor
A new instance of EvalEvent.
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.
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(, 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(, 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_until ⇒ Object (readonly)
50 51 52 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 50 def debug_until @debug_until end |
#default ⇒ Object (readonly)
48 49 50 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 48 def default @default end |
#key ⇒ Object (readonly)
43 44 45 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 43 def key @key end |
#prereq_of ⇒ Object (readonly)
51 52 53 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 51 def prereq_of @prereq_of end |
#reason ⇒ Object (readonly)
47 48 49 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 47 def reason @reason end |
#track_events ⇒ Object (readonly)
49 50 51 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 49 def track_events @track_events end |
#value ⇒ Object (readonly)
46 47 48 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 46 def value @value end |
#variation ⇒ Object (readonly)
45 46 47 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 45 def variation @variation end |
#version ⇒ Object (readonly)
44 45 46 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 44 def version @version end |