Class: Applicants::ApplicantMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/applicants/applicant_mailer.rb

Instance Method Summary collapse

Instance Method Details

#record_your_desktop(applicant_id) ⇒ Object



5
6
7
8
9
10
11
# File 'app/mailers/applicants/applicant_mailer.rb', line 5

def record_your_desktop(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
    to: @applicant.email,
    subject: "Next Step: Complete a sample UserTesting recording"
  )
end

#restarted_for_audio_problem(applicant_id) ⇒ Object



54
55
56
57
58
59
60
# File 'app/mailers/applicants/applicant_mailer.rb', line 54

def restarted_for_audio_problem(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "UserTesting - Technical problem with your application"
  )
end

#restarted_for_performance_problem(applicant_id) ⇒ Object



62
63
64
65
66
67
68
# File 'app/mailers/applicants/applicant_mailer.rb', line 62

def restarted_for_performance_problem(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "UserTesting - Please try your sample test again"
  )
end

#restarted_for_video_problem(applicant_id) ⇒ Object



70
71
72
73
74
75
76
# File 'app/mailers/applicants/applicant_mailer.rb', line 70

def restarted_for_video_problem(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "UserTesting - Technical problem with your application"
  )
end

#upload_video_reminder(applicant_id) ⇒ Object



29
30
31
32
33
34
35
36
# File 'app/mailers/applicants/applicant_mailer.rb', line 29

def upload_video_reminder(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
    to: @applicant.email,
    subject: "UserTesting: Please come back to complete your application"
  )

end

#video_received(applicant_id) ⇒ Object



38
39
40
41
42
43
44
# File 'app/mailers/applicants/applicant_mailer.rb', line 38

def video_received(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "UserTesting: we've received your sample video"
  )
end

#your_application_has_problems(applicant_id) ⇒ Object



21
22
23
24
25
26
27
# File 'app/mailers/applicants/applicant_mailer.rb', line 21

def your_application_has_problems(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "UserTesting - Please try your sample test again"
  )
end

#youve_been_approved(applicant_id) ⇒ Object



13
14
15
16
17
18
19
# File 'app/mailers/applicants/applicant_mailer.rb', line 13

def youve_been_approved(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
      to: @applicant.email,
      subject: "Next Step: Fill out your UserTesting profile"
  )
end

#youve_been_rejected(applicant_id) ⇒ Object



46
47
48
49
50
51
52
# File 'app/mailers/applicants/applicant_mailer.rb', line 46

def youve_been_rejected(applicant_id)
  @applicant = Applicants::Applicant.find(applicant_id)
  mail(
    to: @applicant.email,
    subject: "UserTesting - Your application to UserTesting"
  )
end