Class: Gitlab::Experiment::Rollout::Strategy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



84
85
86
# File 'lib/gitlab/experiment/rollout.rb', line 84

def klass
  @klass
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



84
85
86
# File 'lib/gitlab/experiment/rollout.rb', line 84

def options
  @options
end

Instance Method Details

#for(experiment) ⇒ Object



85
86
87
# File 'lib/gitlab/experiment/rollout.rb', line 85

def for(experiment)
  klass.new(options).for(experiment)
end