class SakaiInfo::PendingQuizItem
Public Class Methods
clear_cache()
click to toggle source
# File lib/sakai-info/quiz.rb, line 716 def self.clear_cache @@cache = {} end
find(id)
click to toggle source
# File lib/sakai-info/quiz.rb, line 721 def self.find(id) id = id.to_s if @@cache[id].nil? row = DB.connect[:sam_item_t].where(:itemid => id).first if row.nil? raise ObjectNotFoundException.new(PendingQuizItem, id) end @@cache[id] = PendingQuizItem.new(row) end @@cache[id] end
Public Instance Methods
item_type()
click to toggle source
# File lib/sakai-info/quiz.rb, line 734 def item_type "pending" end
itemtext_table()
click to toggle source
# File lib/sakai-info/quiz.rb, line 738 def itemtext_table :sam_itemtext_t end