pkgcloud
Version:
An infrastructure-as-a-service agnostic cloud library for node.js
29 lines (24 loc) • 632 B
JavaScript
/*
* image.js: Rackspace Cloud image
*
* (C) 2011 Nodejitsu Inc.
*
*/
var utile = require('utile'),
base = require('../../core/compute/image');
var Image = exports.Image = function Image(client, details) {
base.Image.call(this, client, details);
};
utile.inherits(Image, base.Image);
Image.prototype._setProperties = function (details) {
this.id = details.id;
this.name = details.name;
this.created = details.created;
//
// Rackspace specific
//
this.updated = details.updated;
this.status = details.status;
this.progress = details.progress;
this.original = this.joyent = details;
};