Class: EmailParams::UncompletedCompanySetupEmailParams
- Inherits:
-
BaseEmailParams
show all
- Defined in:
- app/notifications/email_params/uncompleted_company_setup_email_params.rb
Instance Attribute Summary
#event_notification_configuration, #recipient, #reference_event
Instance Method Summary
collapse
#from, #initialize, #template_name, #to
Instance Method Details
#company_name ⇒ Object
11
12
13
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 11
def company_name
company.company_name_e
end
|
#company_url ⇒ Object
19
20
21
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 19
def company_url
company.url
end
|
#dear ⇒ Object
7
8
9
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 7
def dear
recipient.user_name
end
|
15
16
17
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 15
def formatted_event_start_date
I18n.l(reference_event.created_at, format: :long)
end
|
#setup_issues ⇒ Object
23
24
25
26
27
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 23
def setup_issues
company.setup_issues.map do |issue|
I18n.t("emails.uncompleted_company_setup.issues.#{issue}")
end
end
|
#subject ⇒ Object
3
4
5
|
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 3
def subject
I18n.t('emails.uncompleted_company_setup.subject')
end
|