Class: DirectDepositMailer

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

Constant Summary collapse

SUBJECT =
'Confirmation - Your direct deposit information changed on VA.gov'
GA_CAMPAIGN_NAME =
'direct-deposit-update'
GA_DOCUMENT_PATH =
'/email/profile'
GA_LABEL =
'direct-deposit-update'
TEMPLATE =
'direct_deposit'
DD_TYPES =
{
  ch33: 'education',
  comp_pen: 'disability compensation or pension'
}.freeze

Instance Method Summary collapse

Methods inherited from TransactionalEmailMailer

#first_and_last_name, #first_initial_last_name, #template

Instance Method Details

#build(email, google_analytics_client_id, dd_type) ⇒ Object



16
17
18
19
# File 'app/mailers/direct_deposit_mailer.rb', line 16

def build(email, google_analytics_client_id, dd_type)
  @dd_text = DD_TYPES[dd_type.to_sym]
  super(email, google_analytics_client_id)
end