Class: Moodle2CC::Moodle2::Models::Quizzes::CalculatedQuestion
- Defined in:
- lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb
Constant Summary
Constants inherited from Question
Instance Attribute Summary collapse
-
#correct_answer_format ⇒ Object
Returns the value of attribute correct_answer_format.
-
#correct_answer_length ⇒ Object
Returns the value of attribute correct_answer_length.
-
#dataset_definitions ⇒ Object
Returns the value of attribute dataset_definitions.
-
#tolerance ⇒ Object
Returns the value of attribute tolerance.
-
#var_sets ⇒ Object
Returns the value of attribute var_sets.
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
-
#initialize ⇒ CalculatedQuestion
constructor
A new instance of CalculatedQuestion.
Methods inherited from Question
create, register_question_type
Constructor Details
#initialize ⇒ CalculatedQuestion
Returns a new instance of CalculatedQuestion.
6 7 8 9 10 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 6 def initialize super @dataset_definitions = [] @var_sets = [] end |
Instance Attribute Details
#correct_answer_format ⇒ Object
Returns the value of attribute correct_answer_format.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 4 def correct_answer_format @correct_answer_format end |
#correct_answer_length ⇒ Object
Returns the value of attribute correct_answer_length.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 4 def correct_answer_length @correct_answer_length end |
#dataset_definitions ⇒ Object
Returns the value of attribute dataset_definitions.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 4 def dataset_definitions @dataset_definitions end |
#tolerance ⇒ Object
Returns the value of attribute tolerance.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 4 def tolerance @tolerance end |
#var_sets ⇒ Object
Returns the value of attribute var_sets.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/quizzes/calculated_question.rb', line 4 def var_sets @var_sets end |