putCommand.js 333 Bytes
Newer Older
Tristan Cavelier's avatar
Tristan Cavelier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
var putCommand = function(spec, my) {
    var that = command(spec, my);
    spec = spec || {};
    my = my || {};
    // Attributes //
    var priv = {};

    // Methods //
    that.getLabel = function() {
        return 'put';
    };

    that.executeOn = function(storage) {
        storage.put (that);
    };

    return that;
};