Class: EmailParams::UncompletedCompanySetupEmailParams

Inherits:
BaseEmailParams show all
Defined in:
app/notifications/email_params/uncompleted_company_setup_email_params.rb

Instance Attribute Summary

Attributes inherited from BaseEmailParams

#event_notification_configuration, #recipient, #reference_event

Instance Method Summary collapse

Methods inherited from BaseEmailParams

#from, #initialize, #template_name, #to

Constructor Details

This class inherits a constructor from EmailParams::BaseEmailParams

Instance Method Details

#company_nameObject



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_urlObject



19
20
21
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 19

def company_url
  company.url
end

#dearObject



7
8
9
# File 'app/notifications/email_params/uncompleted_company_setup_email_params.rb', line 7

def dear
  recipient.user_name
end

#formatted_event_start_dateObject



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_issuesObject



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

#subjectObject



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