Class: Hyrax::ImportUrlFailureService

Inherits:
AbstractMessageService show all
Defined in:
app/services/hyrax/import_url_failure_service.rb

Instance Attribute Summary

Attributes inherited from AbstractMessageService

#file_set, #user

Instance Method Summary collapse

Methods inherited from AbstractMessageService

#call, #initialize

Constructor Details

This class inherits a constructor from Hyrax::AbstractMessageService

Instance Method Details

#messageObject


4
5
6
# File 'app/services/hyrax/import_url_failure_service.rb', line 4

def message
  file_set.errors.full_messages.join(', ')
end

#subjectObject


8
9
10
# File 'app/services/hyrax/import_url_failure_service.rb', line 8

def subject
  I18n.t('hyrax.notifications.import_url_failure.subject')
end