Sha256: a21914a79a68e9adf77460cdb35723c991fb460764314bcff686653503181a69

Contents?: true

Size: 439 Bytes

Versions: 16

Compression:

Stored size: 439 Bytes

Contents

module Sufia
  class AuditFailureService < MessageUserService
    attr_reader :log_date

    def initialize(file_set, user, log_date)
      @log_date = log_date
      super(file_set, user)
    end

    def message
      uri = file_set.original_file.uri.to_s
      file_title = file_set.title.first
      "The audit run at #{log_date} for #{file_title} (#{uri}) failed."
    end

    def subject
      'Failing Audit Run'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 app/services/sufia/audit_failure_service.rb
sufia-7.4.0 app/services/sufia/audit_failure_service.rb
sufia-7.3.1 app/services/sufia/audit_failure_service.rb
sufia-7.3.0 app/services/sufia/audit_failure_service.rb
sufia-7.3.0.rc3 app/services/sufia/audit_failure_service.rb
sufia-7.3.0.rc2 app/services/sufia/audit_failure_service.rb
sufia-7.3.0.rc1 app/services/sufia/audit_failure_service.rb
sufia-7.2.0 app/services/sufia/audit_failure_service.rb
sufia-7.1.0 app/services/sufia/audit_failure_service.rb
sufia-7.0.0 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.rc2 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.rc1 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.beta4 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.beta3 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.beta2 app/services/sufia/audit_failure_service.rb
sufia-7.0.0.beta1 app/services/sufia/audit_failure_service.rb