Encapsulates the routes that live on the ApplicationMailbox and performs the actual routing when an inbound_email is received.
Namespace
Class
Methods
Class Public methods
new()
Source:
# File actionmailbox/lib/action_mailbox/router.rb, line 9
def initialize
@routes = []
end
Instance Public methods
add_route(address, to:)
Source:
# File actionmailbox/lib/action_mailbox/router.rb, line 19
def add_route(address, to:)
routes.append Route.new(address, to: to)
end