Sha256: f371ac48adcae7918692ac74682cc9cd7782ecb1ec07ec1f1b6e74732afc43fd
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
module Cohortly class Cohorts def group_names [:rand_1, :rand_2, :rand_3] end def group_name(name) Cohortly::Metric.collection.distinct(:user_id, :tag => [name]) end def range(time_range) Cohortly::Metric.collection.distinct(:user_id, :user_start_time => { :$gte => time_range.begin, :lt => time_range.end }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cohortly-0.0.93 | test/dummy/app/models/cohortly/cohorts.rb |
cohortly-0.0.92 | test/dummy/app/models/cohortly/cohorts.rb |