sinmetrics 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinmetrics/abingo.rb +8 -0
- metadata +2 -2
data/lib/sinmetrics/abingo.rb
CHANGED
@@ -199,6 +199,14 @@ module Sinatra
|
|
199
199
|
end
|
200
200
|
end
|
201
201
|
end
|
202
|
+
|
203
|
+
def end_experiment(alternative_id)
|
204
|
+
alternative = Alternative.get(alternative_id)
|
205
|
+
experiment = alternative.experiment
|
206
|
+
if (experiment.status != "Completed")
|
207
|
+
experiment.end_experiment!(self, alternative.content)
|
208
|
+
end
|
209
|
+
end
|
202
210
|
end
|
203
211
|
|
204
212
|
module AbingoObject::ConversionRate
|