debian-mirror-gitlab/app/models/dev_ops_report/metric.rb
2020-11-24 15:15:51 +05:30

21 lines
411 B
Ruby

# 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