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.
Files changed (2) hide show
  1. data/lib/sinmetrics/abingo.rb +8 -0
  2. metadata +2 -2
@@ -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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Luke Petre