Class: LaunchDarkly::Impl::EvaluationWithHookResult Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::EvaluationWithHookResult
- Defined in:
- lib/ldclient-rb/impl/evaluation_with_hook_result.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.
Simple helper class for returning formatted data.
The variation methods make use of the new hook support. Those methods all need to return an evaluation detail, and some other unstructured bit of data.
Instance Attribute Summary collapse
-
#evaluation_detail ⇒ LaunchDarkly::EvaluationDetail
readonly
private
Return the evaluation detail that was generated as part of the evaluation.
-
#results ⇒ any
readonly
private
All purpose container for additional return values from the wrapping method.
Instance Method Summary collapse
-
#initialize(evaluation_detail, results = nil) ⇒ EvaluationWithHookResult
constructor
private
A new instance of EvaluationWithHookResult.
Constructor Details
#initialize(evaluation_detail, results = nil) ⇒ EvaluationWithHookResult
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 EvaluationWithHookResult.
28 29 30 31 |
# File 'lib/ldclient-rb/impl/evaluation_with_hook_result.rb', line 28 def initialize(evaluation_detail, results = nil) @evaluation_detail = evaluation_detail @results = results end |
Instance Attribute Details
#evaluation_detail ⇒ LaunchDarkly::EvaluationDetail (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.
Return the evaluation detail that was generated as part of the evaluation.
15 16 17 |
# File 'lib/ldclient-rb/impl/evaluation_with_hook_result.rb', line 15 def evaluation_detail @evaluation_detail end |
#results ⇒ any (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.
All purpose container for additional return values from the wrapping method
22 23 24 |
# File 'lib/ldclient-rb/impl/evaluation_with_hook_result.rb', line 22 def results @results end |