Class: LaunchDarkly::Impl::Evaluator::EvalResult

Inherits:
Struct
  • Object
show all
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.

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Attribute Details

#big_segments_membershipObject

Returns the value of attribute big_segments_membership

Returns:

  • (Object)

    the current value of big_segments_membership



120
121
122
# File 'lib/ldclient-rb/impl/evaluator.rb', line 120

def big_segments_membership
  @big_segments_membership
end

#big_segments_statusObject

Returns the value of attribute big_segments_status

Returns:

  • (Object)

    the current value of big_segments_status



120
121
122
# File 'lib/ldclient-rb/impl/evaluator.rb', line 120

def big_segments_status
  @big_segments_status
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



120
121
122
# File 'lib/ldclient-rb/impl/evaluator.rb', line 120

def detail
  @detail
end

#prereq_evalsObject

Returns the value of attribute prereq_evals

Returns:

  • (Object)

    the current value of prereq_evals



120
121
122
# File 'lib/ldclient-rb/impl/evaluator.rb', line 120

def prereq_evals
  @prereq_evals
end