@runnable/api-client
Version:
Runnable API Client
18 lines (12 loc) • 374 B
JavaScript
;
var util = require('util');
var BaseGithubRepo = require('../base-github-repo');
module.exports = Repo;
function Repo (attrs, opts) {
var parentPath = opts.parentPath;
delete opts.parentPath;
opts.ownername = parentPath.split('/')[3];
BaseGithubRepo.apply(this, arguments);
}
util.inherits(Repo, BaseGithubRepo);
Repo.prototype.urlPath = 'repos';