Class: DcmgrResource::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- DcmgrResource::Base
- Defined in:
- app/models/dcmgr_resource/base.rb
Direct Known Subclasses
Account, HostPool, Image, Instance, NetfilterGroup, SshKeyPair, StoragePool, Volume, VolumeSnapshot
Constant Summary collapse
- @@debug =
false
Class Method Summary collapse
-
.set_debug(debug = true) ⇒ Object
If headers are not defined in a given subclass, then obtain headers from the superclass.
- .total_resource ⇒ Object
Class Method Details
.set_debug(debug = true) ⇒ Object
If headers are not defined in a given subclass, then obtain headers from the superclass.
20 21 22 |
# File 'app/models/dcmgr_resource/base.rb', line 20 def set_debug(debug = true) @@debug = debug end |
.total_resource ⇒ Object
13 14 15 16 |
# File 'app/models/dcmgr_resource/base.rb', line 13 def total_resource result = self.find(:first,:params => {:start => 0,:limit => 1}) result.owner_total end |