Sha256: 3e2af1fc0d8d2d32204e6698a4fc36d606ae21243bbbe33d410cc29c6ac4322a

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

# add a header row.
csv << [
    'Code',
    'Name',
    'Email',
    'Date of Birth',
    'Hire Date',
    'Pay Rate',
    'Hours'
]

# add the data rows.
@data.each do |row|
  csv << [
      row.code,
      row.name,
      row.email,
      row.date_of_birth.to_s(:date4),
      row.hire_date.to_s(:date4),
      row.pay_rate,
      row.hours
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barkest_core-1.5.4.0 app/views/test_report/index.csv.csvrb
barkest_core-1.5.3.0 app/views/test_report/index.csv.csvrb