gitbeaker/src/Models/Runners.js
Justin Dalrymple af4eb6955f See Changelog:
2017-07-20 15:29:57 -04:00

29 lines
553 B
JavaScript

const BaseModel = require('../BaseModel');
const Utils = require('../Utils');
class Runners extends BaseModel {
all(options = {}) {
return this.get('runners/all', options);
}
show(runnerId) {
const rId = Utils.parse(runnerId);
return this.get(`runners/${rId}`);
}
update(runnerId, attributes) {
const rId = Utils.parse(runnerId);
return this.put(`runners/${rId}`, attributes);
}
remove(runnerId) {
const rId = Utils.parse(runnerId);
return this.delete(`runners/${rId}`);
}
}
module.exports = Runners;