class SakaiInfo::PendingQuizSection
Public Class Methods
clear_cache()
click to toggle source
# File lib/sakai-info/quiz.rb, line 506 def self.clear_cache @@cache = {} end
find(id)
click to toggle source
# File lib/sakai-info/quiz.rb, line 511 def self.find(id) id = id.to_s if @@cache[id].nil? row = DB.connect[:sam_section_t].where(:sectionid => id).first if row.nil? raise ObjectNotFoundException.new(PendingQuizSection, id) end @@cache[id] = PendingQuizSection.new(row) end @@cache[id] end
Public Instance Methods
section_type()
click to toggle source
# File lib/sakai-info/quiz.rb, line 524 def section_type "pending" end