Sha256: c29a688caae543a64c6d093a05eafa0c62450b591ed7aa877d48e92ed4ff24bf

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

if (typeof $ === "undefined") { throw new Error("jQuery is required") }

Record.Host = function(args) {
  var superArguments = Array.prototype.slice.call(arguments);
  superArguments.unshift("host");
  Record.Generic.apply(this, superArguments);
}

Record.Host.prototype = Object.create(Record.Generic.prototype);
Record.Host.prototype.constructor = Record.Host;

Record.Host.prototype.fetch = function(callback) {
  var self = this;
  var id = this.id;

  async.parallel([
      this.attributes.bind(this),
      this.ownedResources.bind(this)
    ],
    function(err, results) {
      if ( err ) 
        return errback(err);
      
      callback({host: results[0], owned: results[1]});
  });
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conjur-asset-ui-api-1.2.0 public/js/models/hostRecord.js