MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / addProperty

Method addProperty

lib/thing.ts:307–310  ·  view source on GitHub ↗

* Add a property to this thing. * * @param {Object} property Property to add

(property: Property)

Source from the content-addressed store, hash-verified

305 * @param {Object} property Property to add
306 */
307 addProperty(property: Property): void {
308 property.setHrefPrefix(this.hrefPrefix);
309 this.properties[property.getName()] = property;
310 }
311
312 /**
313 * Remove a property from this thing.

Callers 10

makeThingFunction · 0.95
makeThingFunction · 0.95
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 2

setHrefPrefixMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected