Added comment for relevance method

This commit is contained in:
alexandercerutti
2018-08-21 14:56:20 +02:00
parent 86c07da135
commit db0ac92f17

View File

@@ -196,6 +196,15 @@ class Pass {
return this; return this;
} }
/**
* Checks and sets data for "beacons", "locations", "maxDistance" and "relevantDate" keys
*
* @method relevance
* @params {String} type - one of the key above
* @params {Any[]} data - the data to be pushed to the property
* @return {Number} The quantity of data pushed
*/
relevance(type, data) { relevance(type, data) {
let types = ["beacons", "locations", "maxDistance", "relevantDate"]; let types = ["beacons", "locations", "maxDistance", "relevantDate"];