In a stand mixer with a paddle attachment beat butter and sugar until soft and well creamed, about 2 minutes. Add ricotta cheese and beat for an additional minute. Add eggs one at a time, beating to incorporate after each egg. Add lemon juice, lemon zest and vanilla and mix until combined. Add flour mixture all at once and mix until just incorporated.