Class: Moodle2CC::Moodle2::Models::Quizzes::Quiz

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeQuiz

Returns a new instance of Quiz.



15
16
17
18
# File 'lib/moodle2cc/moodle2/models/quizzes/quiz.rb', line 15

def initialize
  @question_instances = []
  @feedbacks = []
end

Instance Attribute Details

#attempt_on_lastObject

Returns the value of attribute attempt_on_last.



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

def attempt_on_last
  @attempt_on_last
end

#attempts_numberObject

Returns the value of attribute attempts_number.



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

def attempts_number
  @attempts_number
end

#browser_securityObject

Returns the value of attribute browser_security.



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

def browser_security
  @browser_security
end

#decimal_pointsObject

Returns the value of attribute decimal_points.



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

def decimal_points
  @decimal_points
end

#delay1Object

Returns the value of attribute delay1.



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

def delay1
  @delay1
end

#delay2Object

Returns the value of attribute delay2.



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

def delay2
  @delay2
end

#feedbacksObject

Returns the value of attribute feedbacks.



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

def feedbacks
  @feedbacks
end

#grace_periodObject

Returns the value of attribute grace_period.



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

def grace_period
  @grace_period
end

#gradeObject

Returns the value of attribute grade.



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

def grade
  @grade
end

#grade_methodObject

Returns the value of attribute grade_method.



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

def grade_method
  @grade_method
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#introObject

Returns the value of attribute intro.



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

def intro
  @intro
end

#intro_formatObject

Returns the value of attribute intro_format.



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

def intro_format
  @intro_format
end

#module_idObject

Returns the value of attribute module_id.



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

def module_id
  @module_id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Returns the value of attribute nav_method.



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

def nav_method
  @nav_method
end

#overdue_handlingObject

Returns the value of attribute overdue_handling.



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

def overdue_handling
  @overdue_handling
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#preferred_behaviorObject

Returns the value of attribute preferred_behavior.



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

def preferred_behavior
  @preferred_behavior
end

#question_decimal_pointsObject

Returns the value of attribute question_decimal_points.



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

def question_decimal_points
  @question_decimal_points
end

#question_instancesObject

Returns the value of attribute question_instances.



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

def question_instances
  @question_instances
end

#questions_per_pageObject

Returns the value of attribute questions_per_page.



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

def questions_per_page
  @questions_per_page
end

#review_attemptObject

Returns the value of attribute review_attempt.



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

def review_attempt
  @review_attempt
end

#review_correctnessObject

Returns the value of attribute review_correctness.



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

def review_correctness
  @review_correctness
end

#review_general_feedbackObject

Returns the value of attribute review_general_feedback.



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

def review_general_feedback
  @review_general_feedback
end

#review_marksObject

Returns the value of attribute review_marks.



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

def review_marks
  @review_marks
end

#review_overall_feedbackObject

Returns the value of attribute review_overall_feedback.



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

def review_overall_feedback
  @review_overall_feedback
end

#review_right_answerObject

Returns the value of attribute review_right_answer.



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

def review_right_answer
  @review_right_answer
end

#review_specific_feedbackObject

Returns the value of attribute review_specific_feedback.



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

def review_specific_feedback
  @review_specific_feedback
end

#show_blocksObject

Returns the value of attribute show_blocks.



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

def show_blocks
  @show_blocks
end

#show_user_pictureObject

Returns the value of attribute show_user_picture.



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

def show_user_picture
  @show_user_picture
end

#shuffle_answersObject

Returns the value of attribute shuffle_answers.



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

def shuffle_answers
  @shuffle_answers
end

#shuffle_questionsObject

Returns the value of attribute shuffle_questions.



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

def shuffle_questions
  @shuffle_questions
end

#subnetObject

Returns the value of attribute subnet.



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

def subnet
  @subnet
end

#sum_gradesObject

Returns the value of attribute sum_grades.



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

def sum_grades
  @sum_grades
end

#time_closeObject

Returns the value of attribute time_close.



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

def time_close
  @time_close
end

#time_createdObject

Returns the value of attribute time_created.



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

def time_created
  @time_created
end

#time_limitObject

Returns the value of attribute time_limit.



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

def time_limit
  @time_limit
end

#time_modifiedObject

Returns the value of attribute time_modified.



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

def time_modified
  @time_modified
end

#time_openObject

Returns the value of attribute time_open.



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

def time_open
  @time_open
end

#visibleObject

Returns the value of attribute visible.



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

def visible
  @visible
end