Class: Gitlab::Experiment::Rollout::First

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/experiment/rollout/first.rb

Instance Attribute Summary

Attributes inherited from Base

#experiment

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Experiment::Rollout::Base

Instance Method Details

#executeObject

This rollout strategy just picks the first variant name. It’s the default resolver as it assumes a single variant. You should consider using a more advanced rollout if you have multiple variants.



10
11
12
# File 'lib/gitlab/experiment/rollout/first.rb', line 10

def execute
  variant_names.first
end