Skip to content
Snippets Groups Projects

Add dsl for outcome schemas (tables) for roqua

Merged Jorn van de Beek requested to merge jb_roqua_outcome_schema into main
Files
2
@@ -21,7 +21,7 @@ module Quby
respondent_types: questionnaire.respondent_types,
tags: questionnaire.tags.to_h.keys,
charts: charts,
outcome_schema: outcome_schema,
outcome_tables_schema: outcome_tables_schema,
}
end
@@ -75,7 +75,7 @@ module Quby
}
end
def outcome_schema
def outcome_tables_schema
# hash of tables, with the score keys (rows) and subscore keys (columns) used for each
tables = Hash.new{ |hash, key| hash[key] = {score_keys: [], subscore_keys: []} }
# hash of `subscore_key: subscore_label` pairs used in tables
Loading