```ruby
module SalesforceBulk
  class BatchResultCollection < Array
    
    attr_reader :client
    attr_reader :currentIndex
    attr_reader :batchId
    attr_reader :jobId
    attr_reader :resultIds
    
    def initialize(client, jobId, batchId, resultIds) #previousResultId, nextResultId, currentResultId
      @client = client
      @jobId = jobId
      @batchId = batchId
      @resultIds = resultIds
      @currentIndex = resultIds.first
      
    end
    
    def next?
      
    end
    
    def next
      
    end
    
    def previous?
      
    end
    
    def previous
      
    end
    
  end
end```

Remove unnecessary properties and methods. Add possible helper methods. Not sure yet if we'll stick with using this class. Might not really be necessary or all that helpful if we have the right helpers on the BatchResult class.
user
```ruby
module SalesforceBulk
  class BatchResultCollection < Array
    
    attr_reader :batchId
    attr_reader :jobId
    
    def initialize(jobId, batchId)
      @jobId = jobId
      @batchId = batchId
    end
    
    def any_failures?
      self.any? { |result| result.error.length > 0 }
    end
    
    def failed
      self.select { |result| result.error.length > 0 }
    end
    
    def completed
      self.select { |result| result.success }
    end
    
    def created
      self.select { |result| result.success && result.created }
    end
    
  end
end```
assistant