UNPKG

@yawetse/pkgcloud

Version:

An infrastructure-as-a-service agnostic cloud library for node.js

29 lines (24 loc) 699 B
/* * flavor.js: Joyent Cloud Package * * (C) 2012 Charlie Robbins, Ken Perkins, Ross Kukulinski & the Contributors. * */ var util = require('util'), base = require('../../core/compute/flavor'); var Flavor = exports.Flavor = function Flavor(client, details) { base.Flavor.call(this, client, details); }; util.inherits(Flavor, base.Flavor); Flavor.prototype._setProperties = function (details) { this.id = details.name; this.name = details.name; this.ram = details.memory; this.disk = details.disk; // // Joyent specific // this.swap = details.swap; this['default'] = details['default']; this.original = this.joyent = details; };