class FeedmeYoutubes::Feeds

get rid of this?

Attributes

feeds[RW]

Public Class Methods

new(authors) click to toggle source
# File lib/feedme_youtubes.rb, line 84
def initialize(authors)
  raise ArgumentError, "authors is not an Array" unless authors.class == Array

  @authors = authors
  @feeds   = []
end

Public Instance Methods

populate_feeds() click to toggle source
# File lib/feedme_youtubes.rb, line 96
def populate_feeds
  @feed = []
  @authors.each { |author| @feeds << Feed.new(author) }
end
update() click to toggle source
# File lib/feedme_youtubes.rb, line 91
def update
  populate_feeds
  update_feeds
end
update_feeds() click to toggle source
# File lib/feedme_youtubes.rb, line 101
def update_feeds
  @feeds.each { |feed| feed.update }
end