Class: HasuraHandler::EventHandlerJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- HasuraHandler::EventHandlerJob
- Defined in:
- app/jobs/hasura_handler/event_handler_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(handler_class, event) ⇒ Object
5 6 7 8 9 |
# File 'app/jobs/hasura_handler/event_handler_job.rb', line 5 def perform(handler_class, event) klass = handler_class.constantize handler = klass.new(HasuraHandler::Event.new(event)) handler.run end |