Class: MasterDataTool::Report::ImportReport

Inherits:
Object
  • Object
show all
Includes:
Core
Defined in:
lib/master_data_tool/report/import_report.rb

Instance Attribute Summary

Attributes included from Core

#master_data

Instance Method Summary collapse

Methods included from Core

#initialize

Instance Method Details



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

#reportsObject



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