Class: DcmgrResource::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
app/models/dcmgr_resource/base.rb

Constant Summary collapse

@@debug =
false

Class Method Summary collapse

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_resourceObject



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