Class: SalesforceBulk2::BatchResultCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/salesforce_bulk2/batch_result_collection.rb

Instance Method Summary collapse

Instance Method Details

#any_failures?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 4

def any_failures?
  self.any? { |result| result.error? }
end

#completedObject



12
13
14
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 12

def completed
  self.select { |result| result.successful? }
end

#createdObject



16
17
18
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 16

def created
  self.select { |result| result.successful? && result.created? }
end

#failedObject



8
9
10
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 8

def failed
  self.select { |result| result.error? }
end