Class: StripeWebhooks::ProcessorJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/stripe_webhooks/processor_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(event) ⇒ Object



5
6
7
8
9
10
11
# File 'app/jobs/stripe_webhooks/processor_job.rb', line 5

def perform(event)
  puts "running!"
  event.validate!
  if event.is_authentic?
    event.run_callbacks!
  end
end