Class: Route
- Inherits:
-
MailgunResource
- Object
- ActiveResource::Base
- MailgunResource
- Route
- Defined in:
- lib/howitzer/utils/email/mailgun.rb
Overview
This class represents Mailgun route. A route has 2 properties: pattern and destination
Examples of patterns:
-
‘*’ - match all
-
exact match ([email protected])
-
domain pattern, i.e. a pattern like “@example.com” - it will match all emails going to example.com
-
any regular expression
Destination can be one of:
-
an emails address to forward to
-
a URL for HTTP POST