Class: Hyrax::ImportUrlSuccessService

Inherits:
MessageUserService show all
Defined in:
app/services/hyrax/import_url_success_service.rb

Instance Attribute Summary

Attributes inherited from MessageUserService

#file_set, #user

Instance Method Summary collapse

Methods inherited from MessageUserService

#initialize

Constructor Details

This class inherits a constructor from Hyrax::MessageUserService

Instance Method Details

#callObject



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

def call
  FileSetAttachedEventJob.perform_later(file_set, user)
  super
end

#messageObject



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

def message
  "The file (#{file_set.label}) was successfully imported and attached to #{curation_concern.title.first}."
end

#subjectObject



12
13
14
# File 'app/services/hyrax/import_url_success_service.rb', line 12

def subject
  'File Import'
end