Class: Moodle2CC::Moodle2::Models::Quizzes::TrueFalseQuestion

Inherits:
Question
  • Object
show all
Defined in:
lib/moodle2cc/moodle2/models/quizzes/true_false_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

Method Summary

Methods inherited from Question

create, #initialize, register_question_type

Constructor Details

This class inherits a constructor from Moodle2CC::Moodle2::Models::Quizzes::Question

Instance Attribute Details

#false_answerObject

Returns the value of attribute false_answer.



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

def false_answer
  @false_answer
end

#true_answerObject

Returns the value of attribute true_answer.



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

def true_answer
  @true_answer
end

#true_false_idObject

Returns the value of attribute true_false_id.



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

def true_false_id
  @true_false_id
end