2017-05-24 06:25:44 -04:00
|
|
|
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)
|
2017-08-01 02:46:43 -04:00
|
|
|
self["percentage_#{feature}"]
|
2017-05-24 06:25:44 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|