From 314c613e11db8c355da158c51ac1ced1245bb099 Mon Sep 17 00:00:00 2001 From: Bill Date: Fri, 23 Nov 2018 12:17:09 +0800 Subject: [PATCH] rename readFromData to "fromData" as the equal opposite too "toData" --- src/libDDO/DDO.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libDDO/DDO.ts b/src/libDDO/DDO.ts index ef27ba2..fb7ae98 100644 --- a/src/libDDO/DDO.ts +++ b/src/libDDO/DDO.ts @@ -98,15 +98,15 @@ export default class DDO { this.did = did } if (typeof did === "object") { - this.readFromData(did) + this.fromData(did) } } /* - * Read from a data structur, this can be a JSON + * Read from a data structure, this can be a JSON * :param data: data to import */ - public readFromData(data: IDDO) { + public fromData(data: IDDO) { if (data.hasOwnProperty("id") ) { this.did = data.id }