Class: MasterDataTool::Report::ImportReport
- Inherits:
-
Object
- Object
- MasterDataTool::Report::ImportReport
- Includes:
- Core
- Defined in:
- lib/master_data_tool/report/import_report.rb
Instance Attribute Summary
Attributes included from Core
Instance Method Summary collapse
Methods included from Core
Instance Method Details
#print(printer:) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/master_data_tool/report/import_report.rb', line 8 def print(printer:) reports.each do |_, report| if report.is_a?(Array) report.each { |r| printer.print(message: convert_to_ltsv(r)) } else printer.print(message: convert_to_ltsv(report)) end end end |
#reports ⇒ Object
18 19 20 |
# File 'lib/master_data_tool/report/import_report.rb', line 18 def reports @reports ||= count_report.merge(new_records_report, updated_records_report, no_change_records_report, deleted_records_report) end |