'Shortcut function to create route with filters (kwargs)
to direct to a class-based consumer with given class attributes (attrs)'

@classmethod
def as_route(cls, attrs=None, **kwargs):

    _cls = cls
    if attrs:
        assert isinstance(attrs, dict), u'attrs    must    be    a    dict'
        _cls = type(cls.__name__, (cls,), attrs)
    return route_class(_cls, **kwargs)
