Class: AirtableSync::DestroyRecordJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- AirtableSync::DestroyRecordJob
- Defined in:
- app/jobs/airtable_sync/destroy_record_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(table_name:, airtable_base_id:, airtable_id:) ⇒ Object
5 6 7 8 9 10 |
# File 'app/jobs/airtable_sync/destroy_record_job.rb', line 5 def perform(table_name:, airtable_base_id:, airtable_id:) return if airtable_base_id.blank? return if airtable_id.blank? AirtableSync::Api.new(airtable_base_id).delete_record(table_name, airtable_id) end |