Sha256: 8466856335fce417ca5451c230da60389dc6ac7566d5a680e35923b61bfa4334

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

module MasterDataTool
  module Report
    class VerifyReport
      include Core

      attr_reader :reports

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

      def append(report:)
        @reports << report
      end

      def print(printer:)
        @reports.each do |report|
          printer.print(message: 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

1 entries across 1 versions & 1 rubygems

Version Path
master_data_tool-0.23.0 lib/master_data_tool/report/verify_report.rb