forked from Ermlab/nxt-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiBase.js
More file actions
39 lines (32 loc) · 1.07 KB
/
ApiBase.js
File metadata and controls
39 lines (32 loc) · 1.07 KB
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
33
34
35
36
37
38
39
// Generated by CoffeeScript 1.7.1
(function() {
var debug,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
debug = require('debug')('gitlab:ApiBase');
module.exports.ApiBase = (function() {
function ApiBase(options) {
this.options = options;
this.init = __bind(this.init, this);
this.handleOptions = __bind(this.handleOptions, this);
this.handleOptions();
this.init();
debug("constructor()");
}
ApiBase.prototype.handleOptions = function() {
var _base;
if ((_base = this.options).verbose == null) {
_base.verbose = false;
}
return debug("handleOptions()");
};
ApiBase.prototype.init = function() {
this.client = this;
debug("init()");
this.groups = require('./Models/Groups')(this.client);
this.projects = require('./Models/Projects')(this.client);
this.issues = require('./Models/Issues')(this.client);
return this.users = require('./Models/Users')(this.client);
};
return ApiBase;
})();
}).call(this);