Class: LaunchDarkly::Impl::Model::Preprocessor Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::Preprocessor
- Defined in:
- lib/ldclient-rb/impl/model/preprocessed_data.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.
Class Method Summary collapse
Class Method Details
.precompute_multi_variation_results(flag, regular_reason, in_experiment_reason) ⇒ EvalResultFactoryMultiVariations
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.
53 54 55 56 57 58 59 60 |
# File 'lib/ldclient-rb/impl/model/preprocessed_data.rb', line 53 def self.precompute_multi_variation_results(flag, regular_reason, in_experiment_reason) factories = [] vars = flag[:variations] || [] vars.each_index do |index| factories << EvalResultsForSingleVariation.new(vars[index], index, regular_reason, in_experiment_reason) end EvalResultFactoryMultiVariations.new(factories) end |