Method: Qti::V1::Models::Interactions::FormulaInteraction#margin_of_error
- Defined in:
- lib/qti/v1/models/interactions/formula_interaction.rb
#margin_of_error ⇒ Object
45 46 47 48 |
# File 'lib/qti/v1/models/interactions/formula_interaction.rb', line 45 def margin_of_error return { margin: answer_tolerance[0..-2], margin_type: 'percent' } if answer_tolerance.ends_with? '%' { margin: answer_tolerance, margin_type: 'absolute' } end |