Class: Pay::CustomerSyncJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/pay/customer_sync_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(pay_customer_id) ⇒ Object



3
4
5
6
7
# File 'app/jobs/pay/customer_sync_job.rb', line 3

def perform(pay_customer_id)
  Pay::Customer.find(pay_customer_id).update_api_record
rescue ActiveRecord::RecordNotFound
  Rails.logger.info "Couldn't find a Pay::Customer with ID = #{pay_customer_id}"
end