rubyforgood/casa

View on GitHub
app/services/court_report_due_sms_reminder_service.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module CourtReportDueSmsReminderService
  extend self
  include SmsReminderService
  include SmsBodyHelper

  GENERATE_CASE_COURT_REPORT_LINK = "/case_court_reports"

  def court_report_reminder(user, report_due_date)
    short_link = create_short_link(GENERATE_CASE_COURT_REPORT_LINK)
    message = court_report_due_msg(report_due_date, short_link)
    send_reminder(user, message)
  end
end