Class: SakaiInfo::PublishedQuizAuthorization
Instance Attribute Summary
#dbrow, #ends_at, #id, #name, #starts_at
Attributes inherited from SakaiObject
#id
Class Method Summary
collapse
Instance Method Summary
collapse
#default_serialization, #initialize, #quiz_summary_serialization
Methods included from ModProps
included
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
Class Method Details
.clear_cache ⇒ Object
1524
1525
1526
|
# File 'lib/sakai-info/quiz.rb', line 1524
def self.clear_cache
@@cache = {}
end
|
.count_by_quiz_id(quiz_id) ⇒ Object
.find_by_quiz_id(quiz_id) ⇒ Object
.query_by_quiz_id(quiz_id) ⇒ Object
1546
1547
1548
|
# File 'lib/sakai-info/quiz.rb', line 1546
def self.query_by_quiz_id(quiz_id)
DB.connect[:sam_authzdata_t].where(:qualifierid => quiz_id).where(Sequel.like(:functionid, "%_PUBLISHED_ASSESSMENT%"))
end
|
Instance Method Details
#quiz ⇒ Object
1542
1543
1544
|
# File 'lib/sakai-info/quiz.rb', line 1542
def quiz
@quiz ||= PublishedQuiz.find(@quiz_id)
end
|