Class: MasterDataTool::Report::ImportReport

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

Instance Attribute Summary collapse

Attributes included from Core

#master_data

Instance Method Summary collapse

Methods included from Core

#initialize

Instance Attribute Details

#reportsObject (readonly)

Returns the value of attribute reports.



8
9
10
# File 'lib/master_data_tool/report/import_report.rb', line 8

def reports
  @reports
end

Instance Method Details



10
11
12
13
14
15
16
17
18
# File 'lib/master_data_tool/report/import_report.rb', line 10

def print(printer)
  reports.each do |_, report|
    if report.is_a?(Array)
      report.each { |r| printer.print(convert_to_ltsv(r)) }
    else
      printer.print(convert_to_ltsv(report))
    end
  end
end