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
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) ⇒ 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) ⇒ EvalEvent
Returns a new instance of EvalEvent.
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(, context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil, track_events = false, debug_until = nil, prereq_of = nil) super(, 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_until ⇒ Object (readonly)
40 41 42 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 40 def debug_until @debug_until end |
#default ⇒ Object (readonly)
38 39 40 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 38 def default @default end |
#key ⇒ Object (readonly)
33 34 35 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 33 def key @key end |
#prereq_of ⇒ Object (readonly)
41 42 43 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 41 def prereq_of @prereq_of end |
#reason ⇒ Object (readonly)
37 38 39 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 37 def reason @reason end |
#track_events ⇒ Object (readonly)
39 40 41 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 39 def track_events @track_events end |
#value ⇒ Object (readonly)
36 37 38 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 36 def value @value end |
#variation ⇒ Object (readonly)
35 36 37 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 35 def variation @variation end |
#version ⇒ Object (readonly)
34 35 36 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 34 def version @version end |