Module: RSS::Atom::FeedHistory
- Included in:
- Feed
- Defined in:
- lib/rss/atom/feed_history.rb,
lib/rss/atom/feed_history/version.rb
Constant Summary collapse
- PREFIX =
'fh'
- URI =
'http://purl.org/syndication/history/1.0'
- ELEMENTS =
[ 'complete', 'archive' ]
- PAGED_FEED_RELS =
['first', 'last', 'previous', 'next']
- ARCHIVED_FEED_RELS =
['prev-archive', 'next-archive', 'current']
- VERSION =
"0.0.2"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#archived? ⇒ Boolean
33 34 35 |
# File 'lib/rss/atom/feed_history.rb', line 33 def archived? !!fh_archive end |
#complete? ⇒ Boolean
25 26 27 |
# File 'lib/rss/atom/feed_history.rb', line 25 def complete? !!fh_complete end |
#paged? ⇒ Boolean
29 30 31 |
# File 'lib/rss/atom/feed_history.rb', line 29 def paged? links.any? {|link| FeedHistory::PAGED_FEED_RELS.include? link.rel} end |