class Rsstsvop::Rssop
Public Class Methods
new( index , yaml_pn )
click to toggle source
Calls superclass method
# File lib/rsstsvop/rssop.rb, line 6 def initialize( index , yaml_pn ) yaml_data = load_yaml( yaml_pn ) super( yaml_data["rss"][index] ) end
Public Instance Methods
parse( validation=false )
click to toggle source
# File lib/rsstsvop/rssop.rb, line 11 def parse( validation=false ) @rss = RSS::Parser.parse(@content,validation) self end
print_all_items()
click to toggle source
# File lib/rsstsvop/rssop.rb, line 23 def print_all_items @rss.items.map{|item| puts item.pubDate.strftime( "%Y/%m/%d" ) puts item.category.content puts item.title puts item.link puts item.description puts } end
print_title_list()
click to toggle source
# File lib/rsstsvop/rssop.rb, line 17 def print_title_list @rss.channel.items.each do |x| puts x.title end end