Class: Gaku::ExternalSchoolRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gaku::ExternalSchoolRecord
- Defined in:
- app/models/gaku/external_school_record.rb
Instance Method Summary collapse
Instance Method Details
#attendance_rate ⇒ Object
13 14 15 16 17 |
# File 'app/models/gaku/external_school_record.rb', line 13 def attendance_rate if units_values_present? (presence_days.to_f / total_units) * 100 end end |
#presence_days ⇒ Object
19 20 21 |
# File 'app/models/gaku/external_school_record.rb', line 19 def presence_days total_units - units_absent if units_values_present? end |