new Usage()
Create a new instance of Usage
- Source:
- Usage/Usage.js, line 37
- See:
-
- ProjectApp
- Resource
Properties:
Name | Type | Description |
---|---|---|
usage |
Object | the objects usage |
links |
Array | Contains the array of links |
Example
Load Usage
var u = new Usage();
u.load({
period : "current",
onSuccess : function(){
alert(JSON.stringify(u.usage));
}
});
Methods
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- Usage/Usage.js, line 57
- See:
-
load(options)
-
Override Resource load method.
Parameters:
Name Type Description options
object options to be used during the call
Properties
Name Type Argument Description period
string the period to load onSuccess
Resource~onSuccess a callback function called in case of a success onFailure
Resource~onFailure <optional>
a callback function called in case of a failure baseUrl
String <optional>
base URL. If not set the current base URL will be used - Source:
- Usage/Usage.js, line 71
- See:
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- Usage/Usage.js, line 51
- See: