Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metric.rb « conversational_development_index « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0bee62f954f373d03b6c115345406dda4fd22be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module ConversationalDevelopmentIndex
  class Metric < ActiveRecord::Base
    include Presentable

    self.table_name = 'conversational_development_index_metrics'

    def instance_score(feature)
      self["instance_#{feature}"]
    end

    def leader_score(feature)
      self["leader_#{feature}"]
    end

    def percentage_score(feature)
      self["percentage_#{feature}"]
    end
  end
end