mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-22 22:22:06 +00:00
23 lines
398 B
JavaScript
23 lines
398 B
JavaScript
'use strict';
|
|
|
|
const Response = require('../Response');
|
|
|
|
module.exports = class ParseResponse {
|
|
constructor(client, data) {
|
|
this.client = client;
|
|
this.data = data;
|
|
};
|
|
|
|
static go (client, data) {
|
|
const parseRensponse = new ParseResponse(client, data);
|
|
const response = new Response(client, data);
|
|
|
|
// TODO:
|
|
// raise error if any
|
|
|
|
this.data = response.doc;
|
|
|
|
return response;
|
|
}
|
|
};
|