class InternetClasses

Holds the different type of users with regard to internet. TODO: add limit_class and limit_course to type

Public Instance Methods

migration_1_raw(i) click to toggle source
# File Entities/Internet.rb, line 21
def migration_1_raw(i)
  i._type == ['limit_daily'] and i._type = ['limit_daily_mo']
  i._limit = i._limit_mo
end
setup_data() click to toggle source
# File Entities/Internet.rb, line 15
def setup_data
  value_str :name
  value_int :limit
  value_list_drop :type, '%w(unlimited limit_daily_mo limit_daily_min)'
end