Class: VCAP::Quota::SetQuota
Instance Attribute Summary collapse
-
#filesystem ⇒ Object
Returns the value of attribute filesystem.
-
#group ⇒ Object
Returns the value of attribute group.
-
#quotas ⇒ Object
Returns the value of attribute quotas.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ SetQuota
constructor
A new instance of SetQuota.
- #validate ⇒ Object
Methods inherited from Command
Constructor Details
#initialize ⇒ SetQuota
Returns a new instance of SetQuota.
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/vcap/quota.rb', line 58 def initialize @quotas = { :block => { :soft => 0, :hard => 0, }, :inode => { :soft => 0, :hard => 0, }, } end |
Instance Attribute Details
#filesystem ⇒ Object
Returns the value of attribute filesystem.
55 56 57 |
# File 'lib/vcap/quota.rb', line 55 def filesystem @filesystem end |
#group ⇒ Object
Returns the value of attribute group.
54 55 56 |
# File 'lib/vcap/quota.rb', line 54 def group @group end |
#quotas ⇒ Object
Returns the value of attribute quotas.
56 57 58 |
# File 'lib/vcap/quota.rb', line 56 def quotas @quotas end |
#user ⇒ Object
Returns the value of attribute user.
53 54 55 |
# File 'lib/vcap/quota.rb', line 53 def user @user end |
Instance Method Details
#validate ⇒ Object
71 72 73 74 75 |
# File 'lib/vcap/quota.rb', line 71 def validate assert_at_least_one_of(:user) assert_at_least_one_of(:filesystem) assert_at_least_one_of(:quotas) end |