Class: Moodle2CC::Moodle2::Models::Quizzes::NumericalQuestion

Inherits:
Question
  • Object
show all
Defined in:
lib/moodle2cc/moodle2/models/quizzes/numerical_question.rb

Constant Summary

Constants inherited from Question

Question::STANDARD_TYPES

Instance Attribute Summary collapse

Attributes inherited from Question

#answers, #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

Methods inherited from Question

create, register_question_type

Constructor Details

#initializeNumericalQuestion

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

#tolerancesObject

Returns the value of attribute tolerances.



4
5
6
# File 'lib/moodle2cc/moodle2/models/quizzes/numerical_question.rb', line 4

def tolerances
  @tolerances
end