Class: PactBroker::Webhooks::Job

Inherits:
Object
  • Object
show all
Includes:
Logging, SuckerPunch::Job
Defined in:
lib/pact_broker/webhooks/job.rb

Instance Method Summary collapse

Methods included from Logging

included, #log_error

Instance Method Details

#perform(data) ⇒ Object



14
15
16
17
18
# File 'lib/pact_broker/webhooks/job.rb', line 14

def perform data
  data.fetch(:database_connector).call do
    perform_with_connection(data)
  end
end