Class: Cats::Core::RoundPlanNotification

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

Instance Method Summary collapse

Instance Method Details

#messageObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'app/notifications/cats/core/round_plan_notification.rb', line 8

def message
  round_plan = params[:round_plan]
  plan = round_plan.plan
  title = "Round Plan - #{round_plan.reference_no}"
  date = Date.today
  body = "    A round plan with the following specifications needs your approval:\n      Reference No. = \#{round_plan.reference_no}\n      Status = \#{round_plan.status}\n      Region = \#{round_plan.region.name}\n      Rounds = \#{round_plan.rounds}\n      Program = \#{plan.program.name}\n      Year = \#{plan.year}\n      Season = \#{plan.season}\n  BODY\n  {title: title, date: date, body: body}\nend\n"