var MongoClient = require('mongodb').MongoClient;
var format = require('util').format;
var MONGOHQ_URL = process.env['MONGOHQ_URL'];
var ModelUtil = require('./ModelUtil.js');

function PublicTL() {
    var self = this;
}

PublicTL.prototype.fetch = function(limit, callback) {
    var self = this;
    function selectAction(collection, closeCb) {
        collection.find().limit(limit).toArray(function(err, results) {
            closeCb(err, results);
        });
    }

    ModelUtil.doAction('public_tl', selectAction, function(err, results) {
        callback(err, results);
    });
}


module.exports = PublicTL;


@@ -174,53 +174,187 @@
 );%0A%0A
-function PublicTL() %7B%0A    var self = this;%0A%7D%0A
+/**%0A *  This model represents all public timeline%0A *  posted by each users%0A *%0A */%0Afunction PublicTL() %7B%0A    var self = this;%0A%7D%0A%0A/**%0A *  Get public timeline%0A *%0A *  @param limit%0A */
 %0APub

Write somecomments