GeoKnow/Jassa-Core

View on GitHub
lib/service/lookup_service/LookupServiceBase.js

Summary

Maintainability
A
0 mins
Test Coverage
var Class = require('../../ext/Class');
var LookupService = require('./LookupService');

/**
 * This function must convert ids to unique strings
 * Only the actual service (e.g. sparql or rest) needs to implement it
 * Layers on top of it (e.g. caching, delaying) will then delegate to the
 * inner-most getIdStr function.
 *
 */
var LookupServiceBase = Class.create(LookupService, {
    getIdStr: function(id) {
        var result = id.toString();
        return result;
    },
});

module.exports = LookupServiceBase;