dcolli23 / ingreedyents

Optimizes the use of ingredients by ingredient UPC lookup
0 stars 0 forks source link

Create a nutrient class #19

Closed dcolli23 closed 4 years ago

dcolli23 commented 4 years ago

Description

The results we get from the USDA API are pretty bloated with random stuff that I don't care about so we should make a nutrient class to efficiently store nutrient information.

This should basically just contain name, amount, unit, serving_size, and serving_size_unit members.

dcolli23 commented 4 years ago

Actually, now that I think about it, storing the serving size and serving size unit is a LOT of duplication. I'm not going to do that.