Sha256: 6268a9769db4483f33d57ae5c939abcad1372216de1e9e04e5de75c7a9ae0839

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

module TokyoMetro::App::Renderer::Rss

  LIST = ::YAML.load_file( "#{ ::TokyoMetro::DICTIONARY_DIR }/view/rss.yaml")

  def self.test
    feed_urls = LIST.values.map { | item | item[ "url" ] }
    feed_urls.each do | feed_url |
      feed = ::Feedjira::Feed.fetch_and_parse(feed_urls.first)

      p feed.title          # => "PILOG"
      p feed.url            # => "http://xoyip.hatenablog.com/"
      p feed.feed_url       # => "http://xoyip.hatenablog.com/feed"
      p feed.etag           # => "f6ce826cbbd07e222b6cee445fc981f730ad0693"
      p feed.last_modified  # => 2014-01-15 11:47:34 UTC
      p feed.entries.count  # => 7
      p ""
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/rss.rb