class Newsblurry::FeedParser

Attributes

feeds[R]

Public Class Methods

new(feeds_hash) click to toggle source
# File lib/newsblurry/feed_parser.rb, line 6
def initialize(feeds_hash)
  @feeds = []
  @feeds_hash = feeds_hash
  parse_feeds
end

Private Instance Methods

parse_feeds() click to toggle source
# File lib/newsblurry/feed_parser.rb, line 14
def parse_feeds
  @feeds = @feeds_hash.values.map do |value|
    Newsblurry::Feed.new(value)
  end
end