Class: OPDS::NavigationFeed

Inherits:
Feed
  • Object
show all
Defined in:
lib/opds/navigation_feed.rb

Overview

Represents a navigation feed

Instance Attribute Summary

Attributes inherited from Feed

#entries, #raw_doc

Instance Method Summary collapse

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

#log, log

Constructor Details

This class inherits a constructor from OPDS::Feed

Instance Method Details

Collection of all Navigation feeds found in this feed

Returns:



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/opds/navigation_feed.rb', line 7

def navigation_links
	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