Class: Mailgun::Tracking::Middleware

Inherits:
CatchBox::Middleware
  • Object
show all
Defined in:
lib/mailgun/tracking/middleware.rb

Overview

Rack middleware to handle an HTTP POST to the callback URL when events occur with a message.

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Middleware

Initialize a Mailgun::Tracking::Middleware object.



10
11
12
13
14
15
16
# File 'lib/mailgun/tracking/middleware.rb', line 10

def initialize(app)
  super(
    app,
    fanout: ::Mailgun::Tracking::Fanout,
    endpoint: ::Mailgun::Tracking.endpoint
  )
end