Class: GuineaPig::ABTest
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GuineaPig::ABTest
- Defined in:
- lib/guinea_pig/ab_test.rb
Instance Method Summary collapse
Instance Method Details
#conversion! ⇒ Object
15 16 17 |
# File 'lib/guinea_pig/ab_test.rb', line 15 def conversion! increment!(:conversion_count) end |
#initialize_alternative ⇒ Object
19 20 21 |
# File 'lib/guinea_pig/ab_test.rb', line 19 def initialize_alternative self.alternative ||= ::GuineaPig::Experiments.pick_alternative(experiment) end |