Class: Dcmgr::Models::Quota
- Inherits:
-
BaseNew
- Object
- Sequel::Model
- BaseNew
- Dcmgr::Models::Quota
show all
- Defined in:
- lib/dcmgr/models/quota.rb
Overview
Per account quota limit for the VDC resources.
Constant Summary
Constants inherited
from BaseNew
BaseNew::LOCK_TABLES_KEY
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
self.instance_total_weight ||= Dcmgr.conf.account_instance_total_weight
self.volume_total_size ||= Dcmgr.conf.account_volume_total_size
super
end
|