tender
Version:
Tender API client
26 lines (19 loc) • 592 B
JavaScript
// Generated by CoffeeScript 1.4.0
var Queues, tenderQuery;
tenderQuery = require('../tender_query');
module.exports = Queues = (function() {
function Queues(client) {
this.client = client;
}
Queues.prototype.get = function(options, callback) {
this.options = options;
this.options.uri = "" + this.client.baseURI + "/queues";
if (this.options.id) {
this.options.uri = "" + this.options.uri + "/" + options.id;
}
return tenderQuery(this.client, this.options, function(err, data) {
return callback(err, data);
});
};
return Queues;
})();