lib/parsers.js
function parseMegaWatcher(response) {
  return {
    annotations: parseAnnotations(response.annotations),
    applications: parseApplications(response.applications),
    machines: parseMachines(response.machines),
    relations: parseRelations(response.relations),
    remoteApplications: parseRemoteApplications(response['remote-applications']),
    units: parseUnits(response.units)
  };
}
function parseMegaWatcher(response) {
  return {
    annotations: parseAnnotations(response.annotations),
    applications: parseApplications(response.applications),
    machines: parseMachines(response.machines),
    relations: parseRelations(response.relations),
    remoteApplications: parseRemoteApplications(response['remote-applications']),
    units: parseUnits(response.units)
  };
}
function parseMegaWatcher ( response ) { return { annotations : parseAnnotations ( response . annotations ) , applications : parseApplications ( response . applications ) , machines : parseMachines ( response . machines ) , relations : parseRelations ( response . relations ) , remoteApplications : parseRemoteApplications ( response [ 'remote-applications' ] ) , units : parseUnits ( response . units ) } ; }
Parse a full megawatcher object.
@param {Object} response - The collections of entites.
@param {Object} response.annotations - The collection of annotations.
@param {Object} response.applications - The collection of applications.
@param {Object} response.machines - The collection of machines.
@param {Object} response.relations - The collection of relations.
@param {Object} response.remote-applications - The collection of remote-applications.
@returns {Object} return - The parsed collections.
@returns {Object} return.annotations - The collection of annotations.
@returns {Object} return.applications - The collection of applications.
@returns {Object} return.machines - The collection of machines.
@returns {Object} return.relations - The collection of relations.
@returns {Object} return.remoteApplications - The collection of remote-applications.
Parse a full megawatcher object .