sinmetrics 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|