Class: LaunchDarkly::Impl::EvalEvent Private
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #debug_until ⇒ Object readonly private
- #default ⇒ Object readonly private
- #key ⇒ Object readonly private
- #prereq_of ⇒ Object readonly private
- #reason ⇒ Object readonly private
- #track_events ⇒ Object readonly private
- #value ⇒ Object readonly private
- #variation ⇒ Object readonly private
- #version ⇒ Object readonly private
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
private
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
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
50 51 52 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 50 def debug_until @debug_until end |
#default ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
48 49 50 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 48 def default @default end |
#key ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 43 def key @key end |
#prereq_of ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 51 def prereq_of @prereq_of end |
#reason ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
47 48 49 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 47 def reason @reason end |
#track_events ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 49 def track_events @track_events end |
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
46 47 48 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 46 def value @value end |
#variation ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
45 46 47 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 45 def variation @variation end |
#version ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 44 def version @version end |