Class: SakaiInfo::PendingQuizAccessControl
- Inherits:
-
QuizAccessControl
- Object
- SakaiObject
- QuizAccessControl
- SakaiInfo::PendingQuizAccessControl
- Defined in:
- lib/sakai-info/quiz.rb
Instance Attribute Summary
Attributes inherited from QuizAccessControl
Attributes inherited from SakaiObject
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from QuizAccessControl
#authenticated?, #automatic_submission?, #default_serialization, #due_date, #feedback_date, #final_page_url, #initialize, #item_navigation, #item_numbering, #late_handling, #mark_for_review_allowed?, #password, #question_layout, #quiz_summary_serialization, #release_to, #retract_date, #score_date, #start_date, #submission_message, #submissions_allowed, #submissions_saved, #summary_serialization, #time_limit, #timed?, #unlimited_submissions?, #username
Methods inherited from SakaiObject
all_serializations, #dbrow_only_serialization, #dbrow_serialization, #default_serialization, descendants, #object_type_serialization, #serialize, #shell_serialization, #summary_serialization, #to_csv, #to_json, #to_yaml
Constructor Details
This class inherits a constructor from SakaiInfo::QuizAccessControl
Class Method Details
.clear_cache ⇒ Object
1306 1307 1308 |
# File 'lib/sakai-info/quiz.rb', line 1306 def self.clear_cache @@cache = {} end |
.find(id) ⇒ Object
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 |
# File 'lib/sakai-info/quiz.rb', line 1311 def self.find(id) id = id.to_s if @@cache[id].nil? row = DB.connect[:sam_assessaccesscontrol_t].where(:assessmentid => id.to_i).first if row.nil? raise ObjectNotFoundException.new(PendingQuizAccessControl, id) end @@cache[id] = PendingQuizAccessControl.new(row) end @@cache[id] end |
Instance Method Details
#quiz ⇒ Object
1324 1325 1326 |
# File 'lib/sakai-info/quiz.rb', line 1324 def quiz @quiz ||= PendingQuiz.find(self.id) end |