'use strict'; var nutrient = Object.create( require('../base-objects/state-container') ); nutrient.initNutrition = function( options ) { this.initStateContainer( options ); }; nutrient.getNutrients = function() { return this.getState(); }; nutrient.setNutrients = function( nutrients ) { // only change the ones in the arg var keys = Object.keys( nutrients ), state = this.state; keys.forEach(function(key) { state[key] = nutrients[key]; }); }; module.exports = nutrient;