gitlab-org--gitlab-foss/app/models/conversational_development_index/metric.rb

22 lines
429 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module ConversationalDevelopmentIndex
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