Class: Jobshop::Mailroom::RFQHandler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Jobshop::Mailroom::RFQHandler
- Defined in:
- lib/jobshop/mailroom/rfq_handler.rb
Instance Attribute Summary
Attributes inherited from BaseHandler
#content, #customer, #customer_contact, #from, #organization, #subject, #to
Instance Method Summary collapse
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from Jobshop::Mailroom::BaseHandler
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jobshop/mailroom/rfq_handler.rb', line 8 def process new_rfq = organization.rfqs.create!({ requested_by: customer_contact, customer: customer, from: from, subject: subject, content: content }) if customer_contact RFQResponderMailer.with(customer_contact: customer_contact) .verified_contact.deliver_later end # TODO: Send rfq to quoting queue with low priority if customer.nil? return new_rfq end |