Sha256: 851330853dcba0b28427553bfdac5e27884676366350306402dce0a88d608a1e

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

module SalesforceChunker
  class SingleBatchJob < Job
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
salesforce_chunker-1.2.2 lib/salesforce_chunker/single_batch_job.rb
salesforce_chunker-1.2.1 lib/salesforce_chunker/single_batch_job.rb
salesforce_chunker-1.2.0 lib/salesforce_chunker/single_batch_job.rb
salesforce_chunker-1.1.1 lib/salesforce_chunker/single_batch_job.rb
salesforce_chunker-1.1.0 lib/salesforce_chunker/single_batch_job.rb