Class: Hyrax::BatchCreateFailureService

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

Instance Attribute Summary collapse

Attributes inherited from AbstractMessageService

#file_set

Instance Method Summary collapse

Methods inherited from AbstractMessageService

#call

Constructor Details

#initialize(user) ⇒ BatchCreateFailureService

Returns a new instance of BatchCreateFailureService.



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

def initialize(user)
  @user = user
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



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

def user
  @user
end

Instance Method Details

#messageObject



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

def message
  "The batch create for #{user} failed"
end

#subjectObject



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

def subject
  'Failing batch create'
end