Class: Moodle2CC::Moodle2::Models::Quizzes::CalculatedQuestion

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

Constant Summary

Constants inherited from Question

Question::STANDARD_TYPES

Instance Attribute Summary collapse

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

Methods inherited from Question

create, register_question_type

Constructor Details

#initializeCalculatedQuestion

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_formatObject

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_lengthObject

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_definitionsObject

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

#toleranceObject

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_setsObject

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