all files / node-zoom2/lib/ record.js

100% Statements 13/13
100% Branches 0/0
100% Functions 10/10
100% Lines 13/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46            10×                                                      
'use strict';
 
module.exports = Record;
 
function Record(record) {
  this._record = record;
}
 
Record.prototype = {
  get: function (type) {
    return this._record.get(type);
  },
 
  get json() {
    return JSON.parse(this.get('json'));
  },
 
  get database() {
    return this.get('database');
  },
  
  get syntax() {
    return this.get('syntax');
  },
 
  get schema() {
    return this.get('schema');
  },
 
  get render() {
    return this.get('render');
  },
 
  get raw() {
    return this.get('raw');
  },
 
  get xml() {
    return this.get('xml');
  },
 
  get txml() {
    return this.get('txml');
  }
};