app/services/reports/failed_emails_report.rb
# This class method is used in the back-office
This class method is used in the back-office
This class method is used in the back - office
def report_line(record, reference, error_msg)
        if report_type == :backoffice
          Backoffice::FailedEmail.new(
            record: record,
            reference: reference,
            error: error_msg,
          )
        else
          [
            record.created_at,
            reference,
            error_msg,
          ]
        end
      end
def report_line ( record , reference , error_msg ) if report_type == :backoffice Backoffice :: FailedEmail . new ( record : record , reference : reference , error : error_msg , ) else [ record . created_at , reference , error_msg , ] end end
This class method is used in the back-office
This class method is used in the back - office
record
reference
error_msg