Class: Gitlab::Experiment::Rollout::Base

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

Direct Known Subclasses

First, Random, RoundRobin

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(experiment) ⇒ Base

Returns a new instance of Base.



21
22
23
# File 'lib/gitlab/experiment/rollout.rb', line 21

def initialize(experiment)
  @experiment = experiment
end

Instance Attribute Details

#experimentObject (readonly)

Returns the value of attribute experiment.



17
18
19
# File 'lib/gitlab/experiment/rollout.rb', line 17

def experiment
  @experiment
end