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

metric.rb « dev_ops_report « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14eff7254336c2070c007e51d426caa67329886c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module DevOpsReport
  class Metric < ApplicationRecord
    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