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 collapse
-
#reports ⇒ Object
readonly
Returns the value of attribute reports.
Attributes included from Core
Instance Method Summary collapse
Methods included from Core
Instance Attribute Details
#reports ⇒ Object (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
#print(printer) ⇒ Object
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 |