Class: Route

Inherits:
MailgunResource show all
Defined in:
lib/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 email address to forward to 
- a URL for HTTP POST

Method Summary

Methods inherited from MailgunResource

#upsert

Methods included from Mailgun::RequestBuilder

#prepare_request