 parseRSSFeed  = require('xml2js').parseString
 
 class FeedReader
-  constructor: (@feeds, @feedItemCallback) ->
+  constructor: (feeds, @feedItemCallback) ->
     @allItems = {}
 
     async.forever (next) =>

      callback()


module.exports = FeedReader


        console.log 'Error while fetching', err if err

      # restart request
      setTimeout next, 1000


  fetch: (feeds, callback) =>
    async.each feeds, (feed, callback) =>
      request.get feed.url, (err, req, body) =>
        if err
          return callback err

        @handleFeed feed, body, callback
    , callback


  handleFeed: (feed, feedBody, callback) =>
