lib/requests.js
Function requests
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var requests = function (apiObj) {
return {
specialMethod: function (name, reqObj, callback) {
var parent = this;
// Run reqObj through the validator:
- Create a ticketCreate a ticket
Function genericMethod
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
genericMethod: function (requestType, reqObj, callback) {
// Set a bunch of default variables for use in the request to the BusTracker API:
var host = apiObj.host,
path = apiObj.path || '/bustime/api/v1',
port = apiObj.port || 80,
- Create a ticketCreate a ticket