Class: Hyrax::BatchCreateFailureService
- Inherits:
-
AbstractMessageService
- Object
- AbstractMessageService
- Hyrax::BatchCreateFailureService
- Defined in:
- app/services/hyrax/batch_create_failure_service.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Attributes inherited from AbstractMessageService
Instance Method Summary collapse
-
#initialize(user, messages) ⇒ BatchCreateFailureService
constructor
A new instance of BatchCreateFailureService.
- #message ⇒ Object
- #subject ⇒ Object
Methods inherited from AbstractMessageService
Constructor Details
#initialize(user, messages) ⇒ BatchCreateFailureService
Returns a new instance of BatchCreateFailureService.
5 6 7 8 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 5 def initialize(user, ) @user = user @messages = .to_sentence end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
4 5 6 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 4 def @messages end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 4 def user @user end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 10 def I18n.t('hyrax.notifications.batch_create_failure.message', user: user, messages: ) end |
#subject ⇒ Object
14 15 16 |
# File 'app/services/hyrax/batch_create_failure_service.rb', line 14 def subject I18n.t('hyrax.notifications.batch_create_failure.subject') end |