Class: Hyrax::BatchCreateFailureService
- Inherits:
-
AbstractMessageService
- Object
- AbstractMessageService
- Hyrax::BatchCreateFailureService
- Defined in:
- app/services/hyrax/batch_create_failure_service.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Attributes inherited from AbstractMessageService
Instance Method Summary collapse
-
#initialize(user) ⇒ BatchCreateFailureService
constructor
A new instance of BatchCreateFailureService.
- #message ⇒ Object
- #subject ⇒ Object
Methods inherited from AbstractMessageService
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
#user ⇒ Object (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
#message ⇒ Object
8 9 10 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 8 def "The batch create for #{user} failed" end |
#subject ⇒ Object
12 13 14 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 12 def subject 'Failing batch create' end |