Class: Comee::Core::BackOrderNotification

Inherits:
Noticed::Base
  • Object
show all
Defined in:
app/notifications/comee/core/back_order_notification.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/notifications/comee/core/back_order_notification.rb', line 9

def message
  back_order = params[:back_order]
  title = "New Order Notification"
  date = Date.current
  content = <<~CONTENT
    A new purchase order with the following details has been sent to you:
      order number: #{back_order.order_number}
      order date: #{back_order.order_date}
      delivery date: #{back_order.delivery_date}
  CONTENT
  {title: title, date: date, content: content}
end