Class: SakaiInfo::PublishedQuizMetadata
Instance Attribute Summary
Attributes inherited from QuizMetadata
#dbrow, #id, #key, #value
Attributes inherited from SakaiObject
#id
Class Method Summary
collapse
Instance Method Summary
collapse
#default_serialization, #initialize
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
1413
1414
1415
|
# File 'lib/sakai-info/quiz.rb', line 1413
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
1435
1436
1437
|
# File 'lib/sakai-info/quiz.rb', line 1435
def self.query_by_quiz_id(quiz_id)
DB.connect[:sam_publishedmetadata_t].where(:assessmentid => quiz_id)
end
|
Instance Method Details
#quiz ⇒ Object
1431
1432
1433
|
# File 'lib/sakai-info/quiz.rb', line 1431
def quiz
@quiz ||= PublishedQuiz.find(@quiz_id)
end
|