2018-08-03 17:22:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-09-10 18:08:54 +00:00
|
|
|
module DevOpsReport
|
2019-03-28 13:17:42 +00:00
|
|
|
class Metric < ApplicationRecord
|
2017-05-24 10:25:44 +00:00
|
|
|
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)
|
2017-08-01 06:46:43 +00:00
|
|
|
self["percentage_#{feature}"]
|
2017-05-24 10:25:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|