Class: EmailProcessor
- Inherits:
-
Object
- Object
- EmailProcessor
- Defined in:
- lib/generators/no_notifier_needed/templates/jobs/email_processor.rb
Class Method Summary collapse
Class Method Details
.perform(args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/no_notifier_needed/templates/jobs/email_processor.rb', line 6 def self.perform(args) exec_me = args["which_email"].downcase.to_sym raise ArgumentError.new("No email specified to send. MCP needs your memory. Program deleted") unless exec_me Notifier.mcp(exec_me, args).deliver end |