Class: RSS::Atom::Feed

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

Defined Under Namespace

Classes: Entry, Link

Instance Method Summary collapse

Instance Method Details

#acquisition_feed?Boolean

Returns:

  • (Boolean)


203
204
205
206
207
# File 'lib/rss/opds.rb', line 203

def acquisition_feed?
  links.any? do |link|
    link.rel == 'self' and link.type == OPDS::TYPES['acquisition']
  end
end

Returns:

  • (Boolean)


197
198
199
200
201
# File 'lib/rss/opds.rb', line 197

def navigation_feed?
  links.any? do |link|
    link.rel == 'self' and link.type == OPDS::TYPES['navigation']
  end
end