2016-09-08 10:25:33 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-02 10:35:33 -05:00
|
|
|
class RecruiterMailer < ApplicationMailer
|
|
|
|
def candidate_created candidate
|
|
|
|
@candidate = candidate
|
|
|
|
|
2016-11-30 18:55:27 -06:00
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assessment Test - #{candidate.name}"
|
2016-08-02 10:35:33 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def candidate_submitted candidate
|
|
|
|
@candidate = candidate
|
|
|
|
|
2016-11-30 18:55:27 -06:00
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assessment Test - #{candidate.name}"
|
|
|
|
end
|
|
|
|
|
|
|
|
def interview_requested candidate
|
|
|
|
@candidate = candidate
|
|
|
|
|
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assesment - Interview Request for #{candidate.name}"
|
|
|
|
end
|
|
|
|
|
|
|
|
def interview_declined candidate
|
|
|
|
@candidate = candidate
|
|
|
|
|
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assesment - Interview Declined for #{candidate.name}"
|
2016-08-02 10:35:33 -05:00
|
|
|
end
|
|
|
|
end
|