I'd define a "set_posts" method on the class that ```@feed``` belongs to, since you're basically doing the same (or similar) work, and then you don't need to switch on ```type```