Netlify Node

model

declaration
 model 

var model = require("./model"),
    DnsZone = require("./dns-zone");

var DnsRecord = model.constructor();
DnsRecord.path = "/dns_records";

DnsRecord.prototype = {
  destroy: function(cb) {
    this.client.destroy({prefix: "/dns_zones/" + this.domain_id, element: this}, cb);
  },
};

exports.DnsRecord = DnsRecord;