Class: OPDS::NavigationFeed
Overview
Represents a navigation feed
Instance Attribute Summary
Attributes inherited from Feed
Instance Method Summary collapse
-
#navigation_links ⇒ OPDS::Support::LinkSet
Collection of all Navigation feeds found in this feed.
Methods inherited from Feed
#author, #first_page?, from_nokogiri, #icon, #id, #initialize, #inspect, #last_page?, #links, #next_page, #next_page_url, #paginated?, parse_raw, parse_url, #prev_page, #prev_page_url, #serialize!, #title
Methods included from Logging
Constructor Details
This class inherits a constructor from OPDS::Feed
Instance Method Details
#navigation_links ⇒ OPDS::Support::LinkSet
Collection of all Navigation feeds found in this feed
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/opds/navigation_feed.rb', line 7 def nav_links=Support::LinkSet.new @browser self.links.each do |l| nav_links.push_link l if l.type=='application/atom+xml' end self.entries.each do |entry| entry.links.each do |l| nav_links.push_link l if l.type=='application/atom+xml' end end nav_links end |