Class: Dcmgr::Models::Quota
- Defined in:
- lib/dcmgr/models/quota.rb
Overview
Per account quota limit for the VDC resources.
Constant Summary
Constants inherited from BaseNew
Instance Method Summary collapse
Methods inherited from BaseNew
Proxy, dataset, default_row_lock_mode=, install_data, install_data_hooks, lock!, #to_hash, unlock!, #with_timestamps?
Instance Method Details
#before_validation ⇒ Object
7 8 9 10 11 12 |
# File 'lib/dcmgr/models/quota.rb', line 7 def before_validation # sets default quota values from dcmgr.conf. self.instance_total_weight ||= Dcmgr.conf.account_instance_total_weight self.volume_total_size ||= Dcmgr.conf.account_volume_total_size super end |