Atom feed element

A Feed has several metadata attributes in addition to a number of Entry child elements

Namespace
Methods
H
N
Included Modules
Class Public methods
new(version=nil, encoding=nil, standalone=nil)

Creates a new Atom feed

# File lib/rss/atom.rb, line 279
def initialize(version=nil, encoding=nil, standalone=nil)
  super("1.0", version, encoding, standalone)
  @feed_type = "atom"
  @feed_subtype = "feed"
end
Instance Public methods
have_author?()

Returns true if there are any authors for the feed or any of the Entry child elements have an author

# File lib/rss/atom.rb, line 289
def have_author?
  authors.any? {|author| !author.to_s.empty?} or
    entries.any? {|entry| entry.have_author?(false)}
end