Tag Provider
- Copyright:
- Kiwigrid GmbH 2014-2015
- Source:
Classes
Methods
- <inner> create(properties) → {TagInstance}
- <inner> getGuid() → {string}
- <inner> getName() → {string}
- <inner> getSampleRate() → {number}
-
<inner> create(properties) → {TagInstance}
-
Creates a TagInstance.
Parameters:
Name Type Description properties
Object Properties to inject into TagInstance - Source:
Returns:
TagInstance TagInstance createdExample
angular.module('exampleApp', ['keta.services.Tag']) .controller('ExampleController', function(ketaTag) { var tag = ketaTag.create({ guid: 'guid', name: 'IdName', sampleRate: 10 }); });
-
<inner> getGuid() → {string}
-
Returns
guid
property of Tag.- Source:
Returns:
string guidExample
angular.module('exampleApp', ['keta.services.Tag']) .controller('ExampleController', function(ketaTag) { var tag = ketaTag.create({ guid: 'guid', name: 'name', sampleRate: 10 }); var tagGuid = tag.getGuid(); });
-
<inner> getName() → {string}
-
Returns
name
property of Tag.- Source:
Returns:
string nameExample
angular.module('exampleApp', ['keta.services.Tag']) .controller('ExampleController', function(ketaTag) { var tag = ketaTag.create({ guid: 'guid', name: 'name', sampleRate: 10 }); var tagName = tag.getName(); });
-
<inner> getSampleRate() → {number}
-
Returns
sampleRate
property of Tag.- Source:
Returns:
number sampleRateExample
angular.module('exampleApp', ['keta.services.Tag']) .controller('ExampleController', function(ketaTag) { var tag = ketaTag.create({ guid: 'guid', name: 'name', sampleRate: 10 }); var tagSampleRate = tag.getSampleRate(); });