lib/meibo/classroom.rb in meibo-0.4.0 vs lib/meibo/classroom.rb in meibo-0.5.0
- old
+ new
@@ -61,7 +61,15 @@
@subjects = subjects
@subject_codes = subject_codes
@periods = periods
@extension_fields = extension_fields
end
+
+ def homeroom?
+ class_type == TYPES[:homeroom]
+ end
+
+ def scheduled?
+ class_type == TYPES[:scheduled]
+ end
end
end