@classmethod
    def as_view(cls, view_type, *init_args, **init_kwargs):
        def _wrapper(request, *args, **kwargs):
            # Make a new instance so that no state potentially leaks between
            # instances.
            inst = cls(*init_args, **init_kwargs)
            inst.request = request
            return inst.handle(view_type, *args, **kwargs)

        return _wrapper
Retrieve feature values in an array.
dataset/ETHPy150Open toastdriven/restless/restless/resources.py/Resource.as_view--crossover with--dataset/ETHPy150Open borg-project/borg/borg/storage.py/RunData.to_features_array