Class: Moodle2CC::Moodle2::Models::Quizzes::MatchQuestion

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

#initializeMatchQuestion

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

#matchesObject

Returns the value of attribute matches.



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

def matches
  @matches
end