Add Dummy Storage class

This commit is contained in:
Matias Alejo Garcia 2014-04-07 14:36:57 -03:00
commit 6b2d3cda35
2 changed files with 33 additions and 0 deletions

18
js/models/Storage.js Normal file
View file

@ -0,0 +1,18 @@
'use strict';
var imports = require('soop').imports();
function Storage() {
this.data = {};
}
Storage.prototype.read = function(k) {
return this.data[k];
};
Storage.prototype.save = function(k,v) {
this.data[k]=v;
};
module.exports = require('soop')(Storage);