Module: Laboratory

Defined in:
lib/laboratory.rb,
lib/laboratory/ui.rb,
lib/laboratory/user.rb,
lib/laboratory/config.rb,
lib/laboratory/version.rb,
lib/laboratory/algorithms.rb,
lib/laboratory/experiment.rb,
lib/laboratory/ui/helpers.rb,
lib/laboratory/experiment/event.rb,
lib/laboratory/algorithms/random.rb,
lib/laboratory/experiment/variant.rb,
lib/laboratory/calculations/z_score.rb,
lib/laboratory/adapters/mock_adapter.rb,
lib/laboratory/adapters/redis_adapter.rb,
lib/laboratory/experiment/changelog_item.rb,
lib/laboratory/experiment/event/recording.rb,
lib/laboratory/experiment/analysis_summary.rb,
lib/laboratory/calculations/confidence_level.rb

Defined Under Namespace

Modules: Adapters, Algorithms, Calculations, UIHelpers Classes: Config, Experiment, UI, User

Constant Summary collapse

VERSION =
'0.1.7'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.adapterObject

Returns the value of attribute adapter.



19
20
21
# File 'lib/laboratory.rb', line 19

def adapter
  @adapter
end

Class Method Details

.configObject



21
22
23
# File 'lib/laboratory.rb', line 21

def config
  Thread.current[:laboratory_config] ||= Laboratory::Config.new
end