Class: QuizAnswerDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/quiz_answer_drop.rb

Overview

QuizAnswerDrop represents answer to QuizQuestionDrop

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#answered?Boolean

Returns:

  • (Boolean)

#answered_correctly?Boolean

Returns:

  • (Boolean)

#answered_incorrectly?Boolean

Returns:

  • (Boolean)

#correct?Boolean

Returns:

  • (Boolean)

#idInteger

Returns:

  • (Integer)

#incorrect?Boolean

Returns:

  • (Boolean)

#inputString

Returns:

  • (String)

#input_typeString

Returns 'checkbox' or 'radio'.

Returns:

  • (String)

    'checkbox' or 'radio'

#response_correct?Boolean

Returns:

  • (Boolean)

#show_correct_answer?Boolean

Returns true or false to display the correct answer or not when the user has incorrectly answered a question

Returns:

  • (Boolean)

#textString

Returns:

  • (String)