Class: StemApplicantDenialMailer

Inherits:
TransactionalEmailMailer show all
Defined in:
app/mailers/stem_applicant_denial_mailer.rb

Constant Summary collapse

SUBJECT =
"We've reached a decision on your STEM Scholarship application"
GA_CAMPAIGN_NAME =
'stem_applicant_denial-10203-submission-notification'
GA_DOCUMENT_PATH =
'/email/form'
GA_LABEL =
'stem-applicant-denial-10203-submission-notification'
TEMPLATE =
'stem_applicant_denial'

Instance Method Summary collapse

Methods inherited from TransactionalEmailMailer

#first_and_last_name, #first_initial_last_name, #template

Instance Method Details

#application_dateObject



10
11
12
# File 'app/mailers/stem_applicant_denial_mailer.rb', line 10

def application_date
  @claim.saved_claim.created_at.strftime('%b %d, %Y')
end

#build(claim, ga_client_id) ⇒ Object



19
20
21
22
23
24
# File 'app/mailers/stem_applicant_denial_mailer.rb', line 19

def build(claim, ga_client_id)
  @applicant = claim.saved_claim.open_struct_form
  @claim = claim

  super([@applicant.email], ga_client_id, {})
end

#your_claims_status_urlObject



14
15
16
17
# File 'app/mailers/stem_applicant_denial_mailer.rb', line 14

def your_claims_status_url
  env = FeatureFlipper.staging_email? ? 'staging.' : ''
  "https://#{env}va.gov/track-claims/your-stem-claims/#{@claim.id}/status?utm_medium=email&utm_campaign=stem_scholarship_decision"
end