summaryrefslogtreecommitdiffstats
path: root/lib/json/encodeGlossaryEntry.js
blob: d163f45c047949423cefa75ca13e7e458735f102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

/**
    Encode a SummaryArticle to JSON

    @param {GlossaryEntry}
    @return {Object}
*/
function encodeGlossaryEntry(entry) {
    return {
        id: entry.getID(),
        name: entry.getName(),
        description: entry.getDescription()
    };
}

module.exports = encodeGlossaryEntry;