Class: Resque::Failure::Notifier
- Inherits:
-
Base
- Object
- Base
- Resque::Failure::Notifier
- Defined in:
- lib/resque_failed_job_mailer/resque/failure/notifier.rb
Class Attribute Summary collapse
-
.from ⇒ Object
Returns the value of attribute from.
-
.include_exception ⇒ Object
Returns the value of attribute include_exception.
-
.include_payload ⇒ Object
Returns the value of attribute include_payload.
-
.mail ⇒ Object
Returns the value of attribute mail.
-
.mailer ⇒ Object
Returns the value of attribute mailer.
-
.tags ⇒ Object
Returns the value of attribute tags.
-
.to ⇒ Object
Returns the value of attribute to.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.from ⇒ Object
Returns the value of attribute from.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def from @from end |
.include_exception ⇒ Object
Returns the value of attribute include_exception.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def include_exception @include_exception end |
.include_payload ⇒ Object
Returns the value of attribute include_payload.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def include_payload @include_payload end |
.mail ⇒ Object
Returns the value of attribute mail.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def mail @mail end |
.mailer ⇒ Object
Returns the value of attribute mailer.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def mailer @mailer end |
.tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def @tags end |
.to ⇒ Object
Returns the value of attribute to.
7 8 9 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 7 def to @to end |
Class Method Details
.configure {|_self| ... } ⇒ Object
9 10 11 12 13 14 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 9 def configure yield self self.include_payload = false if include_payload.nil? self.include_exception = false if include_exception.nil? Resque::Failure.backend = self unless Resque::Failure.backend == Resque::Failure::Multiple end |
Instance Method Details
#save ⇒ Object
17 18 19 20 |
# File 'lib/resque_failed_job_mailer/resque/failure/notifier.rb', line 17 def save self.class.mailer.send(self.class.mail, self).deliver rescue end |