def parse(data)
      rss = SimpleRSS.parse data
      news = Array.new

      rss.items.each do |item|
        news_item = NewsItem.new(item.title, item.link, item.description.force_encoding("UTF-8"), item.pubDate)

        news.push news_item
      end

      unless @limit.nil?
        news.take(@limit)
      else
        news
      end
    end
def parse(data)
      rss = SimpleRSS.parse data
      news = Array.new

      rss.items.each do |item|
        news_item = NewsItem.new(item.title, item.link, item.description.force_encoding("UTF-8"), item.pubDate)

        news.push news_item
      end

      unless @limit.nil?
        news.take(@limit)
      else
        news
      end
    end
Parses raw data and returns news items

 @return [Array]