Class: TestReportController

Inherits:
ApplicationController show all
Defined in:
app/controllers/test_report_controller.rb

Instance Method Summary collapse

Methods inherited from BarkestCore::ApplicationControllerBase

#authorize!, #show_denial_reason?

Methods included from BarkestCore::StatusHelper

#clear_system_status, #show_system_status, #status_button_label, #status_redirect_url

Methods included from BarkestCore::RecaptchaHelper

#add_recaptcha_challenge, #verify_recaptcha_challenge

Methods included from BarkestCore::SessionsHelper

#current_user, #current_user?, #forget, #log_in, #log_out, #logged_in?, #redirect_back_or, #remember, #store_location, #store_location_and_redirect_to, #system_admin?

Instance Method Details

#csvObject

Test result: “Code,Name,Email,Date of Birth,Hire Date,Pay Rate,HoursnSMIJOH,John Smith,[email protected],1980-01-01 00:00:00 UTC,2010-05-01 00:00:00 UTC,15.5,2260n”



19
20
21
# File 'app/controllers/test_report_controller.rb', line 19

def csv
  render formats: [ :csv ]
end

#indexObject



14
15
16
# File 'app/controllers/test_report_controller.rb', line 14

def index

end

#pdfObject



27
28
29
# File 'app/controllers/test_report_controller.rb', line 27

def pdf
  render formats: [ :pdf ]
end

#xlsxObject



23
24
25
# File 'app/controllers/test_report_controller.rb', line 23

def xlsx
  render formats: [ :xlsx ]
end