class SalesforceChunker::SingleBatchJob

Public Class Methods

new(connection:, object:, operation:, **options) click to toggle source
Calls superclass method SalesforceChunker::Job::new
# File lib/salesforce_chunker/single_batch_job.rb, line 3
def initialize(connection:, object:, operation:, **options)
  super(connection: connection, object: object, operation: operation, **options)
  payload = options[:payload] || options[:query]
  @log.info "Using Single Batch"
  @batch_id = create_batch(payload)
  @batches_count = 1
  close
end