Compare commits

...

1 Commits

Author SHA1 Message Date
Bennett Buchanan f531f33e82 bugfix: ZENKO-623 Add getDataStoreType method 2018-07-13 17:40:13 -07:00
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class ObjectMDLocation {
* @param {string} locationObj.dataStoreName - type of data store
* @param {string} locationObj.dataStoreETag - internal ETag of
* data part
* @param {string} locationObj.dataStoreType - external location of data
*/
constructor(locationObj) {
this._data = {
@ -22,6 +23,7 @@ class ObjectMDLocation {
size: locationObj.size,
dataStoreName: locationObj.dataStoreName,
dataStoreETag: locationObj.dataStoreETag,
dataStoreType: locationObj.dataStoreType,
};
}
@ -64,6 +66,10 @@ class ObjectMDLocation {
return this;
}
getDataStoreType() {
return this._data.dataStoreType;
}
getValue() {
return this._data;
}