def init_app(self, app):
<EOL>try:<EOL><INDENT>app.record(self._deferred_blueprint_init)<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._init_app(app)<EOL><DEDENT>else:<EOL><INDENT>self.blueprint = app<EOL><DEDENT>
Initialize this class with the given :class:`flask.Flask`
        application or :class:`flask.Blueprint` object.

        :param app: the Flask application or blueprint object
        :type app: flask.Flask
        :type app: flask.Blueprint

        Examples::

            api = Api()
            api.add_resource(...)
            api.init_app(app)