Method: Verdict::Segmenters::BaseSegmenter#conversion_feedback

Defined in:
lib/verdict/segmenters/base_segmenter.rb

#conversion_feedback(identifier, subject, conversion) ⇒ Object

This method is called whenever a subjects converts to a goal, i.e., when Experiment#convert is called. You can use this to implement a feedback loop in your segmenter.

  • The identifier parameter is a string that uniquely identifies the subject.

  • The subject paramater is the subject instance that was passed to the framework, when the application code calls Experiment#assign or Experiment#switch.

  • The conversion parameter is a Verdict::Conversion instance that describes what goal the subject converted to.

The return value of this method is not used.



79
80
81
# File 'lib/verdict/segmenters/base_segmenter.rb', line 79

def conversion_feedback(identifier, subject, conversion)
  # noop by default
end