Sha256: 40f89f88ba367ad5940e811f35266444a9cce5f81020cb4e4175b58b9b3433fb

Contents?: true

Size: 679 Bytes

Versions: 24

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

module MasterDataTool
  module Report
    class VerifyReport
      include Core

      attr_reader :reports

      def initialize(master_data)
        super(master_data)
        @reports = []
      end

      def append(verify_record_report)
        @reports << verify_record_report
      end

      def print(printer)
        @reports.each do |report|
          printer.print(convert_to_ltsv(report))
        end
      end

      class << self
        def build_verify_record_report(master_data, record, valid)
          {operation: :verify, table_name: master_data.table_name, valid: valid, id: record.id}
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
master_data_tool-0.22.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.21.1 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.21.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.20.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.19.1 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.19.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.18.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.17.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.16.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.15.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.14.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.13.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.12.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.11.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.10.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.9.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.8.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.7.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.6.0 lib/master_data_tool/report/verify_report.rb
master_data_tool-0.5.0 lib/master_data_tool/report/verify_report.rb