It can be either one. In colonial America, gingerbread was referred to as a cake.  This recipe is based on Martha Washington's gingerbread recipe from the 1700s.