Best way to create this simple component?

I created this simple thing in several different ways but they are all very awkward. What’s the easiest/best way to create this?

Sketch and extrude.

As @Oregoerd stated so simply. That is the way I would do it.

What he did :point_up_2: