Method: Qti::V1::Models::Interactions::BaseFillBlankInteraction#nq_blank_value
- Defined in:
- lib/qti/v1/models/interactions/base_fill_blank_interaction.rb
#nq_blank_value(blank_id) ⇒ Object
The correct answer value is not necessarily the first one in NQ
55 56 57 58 59 |
# File 'lib/qti/v1/models/interactions/base_fill_blank_interaction.rb', line 55 def nq_blank_value(blank_id) blank = canvas_fib_responses.find { |response| response[:id] == blank_id } correct_choice = blank[:choices].find { |choice| choice[:id] == correct_answer_map[blank_id] } correct_choice[:item_body] end |