Class: Quota

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/quota.rb

Instance Method Summary collapse

Instance Method Details

#full_summaryObject



18
19
20
# File 'app/models/quota.rb', line 18

def full_summary
  "(#{flat_type}) #{summary}"
end

#summaryObject

include ActiveModel::ForbiddenAttributesProtection



14
15
16
# File 'app/models/quota.rb', line 14

def summary
  "M:#{malay},C:#{chinese},I/O:#{others}"
end