node-ebics-client/lib/middleware/ParseResponse.js

23 lines
399 B
JavaScript
Raw Normal View History

2018-05-17 15:03:59 +00:00
'use strict';
const Response = require('../Response');
module.exports = class ParseResponse {
constructor(client, data) {
this.client = client;
this.data = data;
2018-06-01 13:16:43 +00:00
}
2018-05-17 15:03:59 +00:00
2018-06-01 13:16:43 +00:00
static go(client, data) {
// const parseRensponse = new ParseResponse(client, data);
2018-05-17 15:03:59 +00:00
const response = new Response(client, data);
// TODO:
// raise error if any
this.data = response.doc;
return response;
}
};