Module: Tag

Tag

Tag Provider
Author:
  • Marco Lehmann <marco.lehmann (at) kiwigrid.com>
Source:

Classes

ketaTagProvider
Tag
TagInstance

Methods

<inner> create(properties) → {TagInstance}

Creates a TagInstance.

Parameters:
Name Type Description
properties Object Properties to inject into TagInstance
Source:
Returns:
TagInstance TagInstance created
Example
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 guid
Example
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 name
Example
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 sampleRate
Example
angular.module('exampleApp', ['keta.services.Tag'])
    .controller('ExampleController', function(ketaTag) {
        var tag = ketaTag.create({
            guid: 'guid',
            name: 'name',
            sampleRate: 10
        });
        var tagSampleRate = tag.getSampleRate();
    });