forked from Ermlab/nxt-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseModel.js
More file actions
32 lines (26 loc) · 802 Bytes
/
BaseModel.js
File metadata and controls
32 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Generated by CoffeeScript 1.6.3
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
module.exports = (function() {
function exports(client) {
this.client = client;
this._init = __bind(this._init, this);
this.load = __bind(this.load, this);
this._init();
}
exports.prototype.load = function(model) {
return require("./" + model)(this.client);
};
exports.prototype._init = function() {
this.debug = this.client.debug;
this.get = this.client.get;
this.post = this.client.post;
this.put = this.client.put;
this["delete"] = this.client["delete"];
if (this.init != null) {
return this.init();
}
};
return exports;
})();
}).call(this);