1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/action_mailroom/mailbox.rb
David Heinemeier Hansson 061d77f7ca WIP: Router
2018-09-17 17:49:47 -07:00

21 lines
374 B
Ruby

class ActionMailroom::Mailbox
class << self
def receive(inbound_email)
new(inbound_email).process
end
def routing(routes)
@router = ActionMailroom::Router.new(routes)
end
end
attr_reader :inbound_email
delegate :mail, to: :inbound_email
def initialize(inbound_email)
@inbound_email = inbound_email
end
def process
end
end