Class: EurekaBot::Job::Output

Inherits:
EurekaBot::Job show all
Defined in:
lib/eureka_bot/job/output.rb

Instance Method Summary collapse

Methods included from Instrumentation

#instrument, prefix

Instance Method Details

#perform(sender_class, message, *args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/eureka_bot/job/output.rb', line 4

def perform(sender_class, message, *args)
  instrument 'job.output' do
    sender_class.constantize.new.deliver(message, *args)
  end
rescue StandardError => e
  EurekaBot.exception_handler(e, self.class, sender_class: sender_class, message: message)
end