Class: EmailParams::EmployeesWithoutTimesheetsEmailDummyParams
- Inherits:
-
Object
- Object
- EmailParams::EmployeesWithoutTimesheetsEmailDummyParams
- Defined in:
- app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb
Instance Method Summary collapse
- #company_name ⇒ Object
- #days_remaining_in_payroll_period ⇒ Object
- #dear ⇒ Object
- #employees_url ⇒ Object
- #employees_without_timesheets ⇒ Object
- #employees_without_timesheets_count ⇒ Object
- #formatted_event_start_date ⇒ Object
- #formatted_payroll_period_end_date ⇒ Object
- #formatted_payroll_period_start_date ⇒ Object
- #subject ⇒ Object
Instance Method Details
#company_name ⇒ Object
11 12 13 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 11 def company_name I18n.t('dummy_emails.employees_without_timesheets.company_name') end |
#days_remaining_in_payroll_period ⇒ Object
43 44 45 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 43 def days_remaining_in_payroll_period 5 end |
#dear ⇒ Object
7 8 9 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 7 def dear I18n.t('dummy_emails.employees_without_timesheets.dear') end |
#employees_url ⇒ Object
15 16 17 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 15 def employees_url I18n.t('dummy_emails.employees_without_timesheets.employees_url') end |
#employees_without_timesheets ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 23 def employees_without_timesheets [ { employee_name: 'John Doe', employee_id: 1, url: 'http://example.com/employee/1' }, { employee_name: 'Jane Smith', employee_id: 2, url: 'http://example.com/employee/2' }, { employee_name: 'Alice Johnson', employee_id: 3, url: 'http://example.com/employee/3' } ] end |
#employees_without_timesheets_count ⇒ Object
19 20 21 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 19 def employees_without_timesheets_count 3 end |
#formatted_event_start_date ⇒ Object
47 48 49 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 47 def formatted_event_start_date I18n.l(Time.zone.now, format: :long) end |
#formatted_payroll_period_end_date ⇒ Object
55 56 57 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 55 def formatted_payroll_period_end_date I18n.l(1.week.from_now, format: :long) end |
#formatted_payroll_period_start_date ⇒ Object
51 52 53 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 51 def formatted_payroll_period_start_date I18n.l(1.week.ago, format: :long) end |
#subject ⇒ Object
3 4 5 |
# File 'app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb', line 3 def subject I18n.t('dummy_emails.employees_without_timesheets.subject') end |