class Quby::Questionnaires::Entities::SubscoreSchema
SubscoreSchema
instances describe each key that could be returned in a score result hash
Attributes
export_key[RW]
The shortened key that will used as the field/column name for csv and oru exports, excluding the questionnaire key part
key[RW]
The key this subscore has in the hash returned by the score
label[RW]
The description of this subscore in the context of the score, like 'Mean', 'T-Score' or 'Interpretation'
only_for_export[RW]
Whether this score will only be exported through oru/api/data exports, but not shown in interfaces
Public Instance Methods
export_key_is_symbol()
click to toggle source
# File lib/quby/questionnaires/entities/subscore_schema.rb, line 27 def export_key_is_symbol errors.add(:export_key, 'is not a symbol') unless export_key.is_a?(Symbol) end
key_is_symbol()
click to toggle source
# File lib/quby/questionnaires/entities/subscore_schema.rb, line 23 def key_is_symbol errors.add(:key, 'is not a symbol') unless key.is_a?(Symbol) end