module SalesforceBulk
  class QueryResultCollection < Array
    
    attr_reader :client
    attr_reader :currentIndex
    attr_reader :batchId
    attr_reader :jobId
    attr_reader :resultIds
    
    def initialize(client, jobId, batchId, currentIndex=0)
      @client = client
      @jobId = jobId
      @batchId = batchId
      @currentIndex = currentIndex
    end
    
    def next?
      @currentIndex < length - 1
    end
    
    def next
      # if has next, calls method on client to fetch data and returns new collection instance
    end
    
    def previous?
      @currentIndex > 0
    end
    
    def previous
      # if has previous, calls method on client to fetch data and returns new collection instance
    end
    
  end
end
module SalesforceBulk
  class QueryResultCollection < Array
    
    attr_reader :client
    attr_reader :currentIndex
    attr_reader :batchId
    attr_reader :jobId
    attr_reader :resultId
    attr_reader :previousResultId
    attr_reader :nextResultId
    
    def initialize(client, jobId, batchId, resultId=nil, previousResultId=nil, nextResultId=nil)
      @client = client
      @jobId = jobId
      @batchId = batchId
      @resultId = resultId
      @previousResultId = previousResultId
      @nextResultId = nextResultId
    end
    
    def next?
      @currentIndex < length - 1
    end
    
    def next
      # if has next, calls method on client to fetch data and returns new collection instance
    end
    
    def previous?
      @currentIndex > 0
    end
    
    def previous
      # if has previous, calls method on client to fetch data and returns new collection instance
    end
    
  end
end
Update initialize method and add new attr_readers to pass new tests.
Update initialize method and add new attr_readers to pass new tests.
