def records(opts = {})
      view = opts[:view] || @opts[:view]
      limit = opts[:limit] || @opts[:limit]
      record_rows(view, limit).map do |row|
        @record_class.build(
          mint_id(row['doc']['_id']),
          row['doc'].to_json,
          'application/json'
        )
      end
    end
def records(opts = {})
      view = opts[:view] || @opts[:view]
      limit = opts[:limit] || @opts[:limit]
      record_rows(view, limit).map do |row|
        @record_class.build(
          mint_id(row['doc']['_id']),
          row['doc'].to_json,
          'application/json'
        )
      end
    end
Makes requests to a CouchDB view to yield documents.

 The following will only send requests to the endpoint until it
 has 1000 records:

     records.take(1000)

 Batches of records are requested, in order to avoid using
 `Analysand::StreamingViewResponse`, and the CouchDB `startkey` parameter
 is used for greater efficiency than `skip` in locating the next page of
 records.

 @return [Enumerator]
 @see Analysand::Viewing
 @see http://docs.couchdb.org/en/latest/couchapp/views/collation.html#all-docs