Class: Moodle2CC::Moodle2::Models::Quizzes::NumericalQuestion
- Defined in:
- lib/moodle2cc/moodle2/models/quizzes/numerical_question.rb
Constant Summary
Constants inherited from Question
Instance Attribute Summary collapse
-
#tolerances ⇒ Object
Returns the value of attribute tolerances.
Attributes inherited from Question
#answers, #bank_entry_id, #default_mark, #general_feedback, #hidden, #id, #length, #max_mark, #name, #parent, #penalty, #qtype, #question_text, #question_text_format, #stamp, #type, #version
Instance Method Summary collapse
-
#initialize ⇒ NumericalQuestion
constructor
A new instance of NumericalQuestion.
Methods inherited from Question
create, register_question_type
Constructor Details
#initialize ⇒ NumericalQuestion
Returns a new instance of NumericalQuestion.
6 7 8 9 |
# File 'lib/moodle2cc/moodle2/models/quizzes/numerical_question.rb', line 6 def initialize super @tolerances = {} end |
Instance Attribute Details
#tolerances ⇒ Object
Returns the value of attribute tolerances.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/numerical_question.rb', line 4 def tolerances @tolerances end |