Class: ReportsManager::PriorityRepairReport
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- ReportsManager::PriorityRepairReport
- Defined in:
- app/services/reports_manager/priority_repair_report.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(user_id, property_id, report_type) ⇒ PriorityRepairReport
constructor
A new instance of PriorityRepairReport.
Methods inherited from ApplicationService
Constructor Details
#initialize(user_id, property_id, report_type) ⇒ PriorityRepairReport
Returns a new instance of PriorityRepairReport.
5 6 7 8 9 |
# File 'app/services/reports_manager/priority_repair_report.rb', line 5 def initialize(user_id, property_id, report_type) @user_id = user_id @property_id = property_id @report_type = report_type end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 |
# File 'app/services/reports_manager/priority_repair_report.rb', line 11 def call data = ::ReportsManager::DefectReport.call(1, @property_id, 'PDF', false, false, 'defect-priority-report') data['footer_text'] = "These 'priorities' are based soley on REAC's scoring methodology. Please keep in mind, there may be lower ranked safety issues that require immediate repair. Please review the entire report. <br/><br/>NSPIRE V2.2 Report ~ U.S. Inspection Group, Inc. ~ (866) 863-8744 ~ www.USInspectionGroup.com<br/> Required Repair Timeframes: Advisory = Discretionary; Moderate H&S = 30 Days; Severe H&S = 1 Day" data end |