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

17 lines
257 B
JavaScript
Raw Normal View History

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