Class: LaunchDarkly::Impl::Evaluator::EvalResult
- Inherits:
-
Struct
- Object
- Struct
- LaunchDarkly::Impl::Evaluator::EvalResult
- Defined in:
- lib/ldclient-rb/impl/evaluator.rb
Overview
Used internally to hold an evaluation result and additional state that may be accumulated during an evaluation. It's simpler and a bit more efficient to represent these as mutable properties rather than trying to use a pure functional approach, and since we're not exposing this object to any application code or retaining it anywhere, we don't have to be quite as strict about immutability.
The big_segments_status and big_segments_membership properties are not used by the caller; they are used during an evaluation to cache the result of any Big Segments query that we've done for this context, because we don't want to do multiple queries for the same context if multiple Big Segments are referenced in the same evaluation.
Instance Attribute Summary collapse
-
#big_segments_membership ⇒ Object
Returns the value of attribute big_segments_membership.
-
#big_segments_status ⇒ Object
Returns the value of attribute big_segments_status.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#prereq_evals ⇒ Object
Returns the value of attribute prereq_evals.
Instance Attribute Details
#big_segments_membership ⇒ Object
Returns the value of attribute big_segments_membership
128 129 130 |
# File 'lib/ldclient-rb/impl/evaluator.rb', line 128 def big_segments_membership @big_segments_membership end |
#big_segments_status ⇒ Object
Returns the value of attribute big_segments_status
128 129 130 |
# File 'lib/ldclient-rb/impl/evaluator.rb', line 128 def big_segments_status @big_segments_status end |
#detail ⇒ Object
Returns the value of attribute detail
128 129 130 |
# File 'lib/ldclient-rb/impl/evaluator.rb', line 128 def detail @detail end |
#prereq_evals ⇒ Object
Returns the value of attribute prereq_evals
128 129 130 |
# File 'lib/ldclient-rb/impl/evaluator.rb', line 128 def prereq_evals @prereq_evals end |