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



62
63
64
# File 'lib/gitlab/experiment/rollout.rb', line 62

def klass
  @klass
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



62
63
64
# File 'lib/gitlab/experiment/rollout.rb', line 62

def options
  @options
end

Instance Method Details

#for(experiment) ⇒ Object



63
64
65
# File 'lib/gitlab/experiment/rollout.rb', line 63

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