Class: SalesforceBulk2::BatchResultCollection
- Inherits:
-
Array
- Object
- Array
- SalesforceBulk2::BatchResultCollection
- Defined in:
- lib/salesforce_bulk2/batch_result_collection.rb
Instance Method Summary collapse
Instance Method Details
#any_failures? ⇒ Boolean
4 5 6 |
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 4 def any_failures? self.any? { |result| result.error? } end |
#completed ⇒ Object
12 13 14 |
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 12 def completed self.select { |result| result.successful? } end |
#created ⇒ Object
16 17 18 |
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 16 def created self.select { |result| result.successful? && result.created? } end |
#failed ⇒ Object
8 9 10 |
# File 'lib/salesforce_bulk2/batch_result_collection.rb', line 8 def failed self.select { |result| result.error? } end |