def _wrap_public_method(self, attr):
        """
        Ensure that plugin will call current connection method when accessing
        as ``plugin.<public_method>(*args, **kwargs)``.
        """
        def wrapper(*args, **kwargs):
            return getattr(self.connection, attr)(*args, **kwargs)
        return wrapper
Ensure that plugin will call current connection method when accessing
        as ``plugin.<public_method>(*args, **kwargs)``.