Class: EmailParams::EmployeesWithoutTimesheetsEmailDummyParams

Inherits:
Object
  • Object
show all
Defined in:
app/notifications/email_params/employees_without_timesheets_email_dummy_params.rb

Instance Method Summary collapse

Instance Method Details

#company_nameObject



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_periodObject



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

#dearObject



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_urlObject



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_timesheetsObject



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_countObject



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_dateObject



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_dateObject



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_dateObject



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

#subjectObject



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