UNPKG

tender

Version:

Tender API client

26 lines (19 loc) 594 B
// Generated by CoffeeScript 1.4.0 var Users, tenderQuery; tenderQuery = require('../tender_query'); module.exports = Users = (function() { function Users(client) { this.client = client; } Users.prototype.get = function(options, callback) { this.options = options; this.options.uri = "" + this.client.baseURI + "/users"; if (this.options.userId) { this.options.uri = "" + this.options.uri + "/" + options.userId; } return tenderQuery(this.client, this.options, function(err, data) { return callback(err, data); }); }; return Users; })();