Class: Dcmgr::Models::Quota

Inherits:
BaseNew
  • Object
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_validationObject



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.
  self.volume_total_size ||= Dcmgr.conf.
  super
end