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