Sha256: c7ccda675ea3c567418c4d609b998eca75586c3f37ff349d9f2d5c9bf252c8e4

Contents?: true

Size: 345 Bytes

Versions: 49

Compression:

Stored size: 345 Bytes

Contents

module Mihari
  module Middleware
    class ErrorNotificationAdapter
      include Mixins::ErrorNotification

      def initialize(app)
        @app = app
      end

      def call(env)
        with_error_notification do
          status, headers, body = @app.call(env)

          [status, headers, body]
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
mihari-5.6.2 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.6.1 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.6.0 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.5.0 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.9 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.8 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.7 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.6 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.5 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.4 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.3 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.2 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.1 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.4.0 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.3.2 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.3.1 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.3.0 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.2.4 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.2.3 lib/mihari/web/middleware/error_notification_adapter.rb
mihari-5.2.2 lib/mihari/web/middleware/error_notification_adapter.rb