Class: Quote::QuoteCompletedHandler
- Inherits:
-
Object
- Object
- Quote::QuoteCompletedHandler
- Defined in:
- app/subscribers/quote/quote_completed_handler.rb
Overview
Pub/sub subscriber: quote completed handler.
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/subscribers/quote/quote_completed_handler.rb', line 5 def call(event) quote = Quote.find(event.data[:quote_id]) quote.schedule_follow_up quote.customer.recalculate_profiling_information assign_drip_campaigns(quote) Quote::AssignLargeOppActivity.new.process(quote) mark_rooms_complete(quote) end |