Class: Gitlab::Experiment::Rollout::Base
- Inherits:
-
Object
- Object
- Gitlab::Experiment::Rollout::Base
- Defined in:
- lib/gitlab/experiment/rollout.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#experiment ⇒ Object
readonly
Returns the value of attribute experiment.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #rollout_for(experiment) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
20 21 22 |
# File 'lib/gitlab/experiment/rollout.rb', line 20 def initialize( = {}) = end |
Instance Attribute Details
#experiment ⇒ Object (readonly)
Returns the value of attribute experiment.
16 17 18 |
# File 'lib/gitlab/experiment/rollout.rb', line 16 def experiment @experiment end |
Instance Method Details
#execute ⇒ Object
29 30 31 |
# File 'lib/gitlab/experiment/rollout.rb', line 29 def execute variant_names.first end |
#rollout_for(experiment) ⇒ Object
24 25 26 27 |
# File 'lib/gitlab/experiment/rollout.rb', line 24 def rollout_for(experiment) @experiment = experiment execute end |