8 lines
197 B
Ruby
8 lines
197 B
Ruby
class UsdaFoodSerializer < ApplicationSerializer
|
|
def serialize
|
|
{
|
|
**item_properties(:ndbn, :kcal, :carbohydrates, :lipid, :protein),
|
|
name: item.long_description
|
|
}
|
|
end
|
|
end |