rubyforgood/casa

View on GitHub
app/services/no_contact_made_sms_reminder_service.rb

Summary

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

  NEW_CASE_CONTACT_LINK = "/case_contacts/new"

  def no_contact_made_reminder(user, contact_type)
    short_link = create_short_link(NEW_CASE_CONTACT_LINK)
    message = no_contact_made_msg(contact_type, short_link)
    send_reminder(user, message)
  end
end