Sha256: ca3775b2d23bea796d88d8967cff61a30e137c9b22cdf95afd00215d26663c92

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

module Cohortly
  class ReportMeta
    include MongoMapper::Document

    key :collection_name, String
    key :last_update_on, Time

    def store_name
      "cohortly_report_#{self.id}"
    end

    def run
      args = Metric.report_name_to_args(self.collection_name)
      Cohortly::Metric.cohort_chart(*args)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cohortly-0.0.9.1 app/models/cohortly/report_meta.rb
cohortly-0.0.9 app/models/cohortly/report_meta.rb
cohortly-0.0.8 app/models/cohortly/report_meta.rb