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