Class: EasyAb::Experiments

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_ab.rb

Instance Method Summary collapse

Constructor Details

#initializeExperiments

Returns a new instance of Experiments.



36
37
38
# File 'lib/easy_ab.rb', line 36

def initialize
  @experiments = []
end

Instance Method Details

#allObject



48
49
50
# File 'lib/easy_ab.rb', line 48

def all
  @experiments
end

#define(name, options = {}) ⇒ Object



40
41
42
# File 'lib/easy_ab.rb', line 40

def define(name, options = {})
  @experiments << ::EasyAb::Experiment.new(name, options)
end

#resetObject



44
45
46
# File 'lib/easy_ab.rb', line 44

def reset
  @experiments.clear
end