You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var resourceful = require('resourceful');
|
|
|
|
var Creature = module.exports = resourceful.define('creature', function () {
|
|
this.string('diet');
|
|
this.bool('vertebrate');
|
|
this.array('belly');
|
|
|
|
this.timestamps();
|
|
});
|
|
|
|
Creature.prototype.feed = function (food) {
|
|
this.belly.push(food);
|
|
};
|