| Class | RSS::Atom::Entry |
| In: |
lib/rss/atom.rb
lib/rss/dublincore/atom.rb |
| Parent: | RSS::Element |
| Author | = | Feed::Entry::Author |
| Category | = | Feed::Entry::Category |
| Content | = | Feed::Entry::Content |
| Contributor | = | Feed::Entry::Contributor |
| Id | = | Feed::Entry::Id |
| Link | = | Feed::Entry::Link |
| Published | = | Feed::Entry::Published |
| Rights | = | Feed::Entry::Rights |
| Source | = | Feed::Entry::Source |
| Summary | = | Feed::Entry::Summary |
| Title | = | Feed::Entry::Title |
| Updated | = | Feed::Entry::Updated |
# File lib/rss/atom.rb, line 662
662: def initialize(version=nil, encoding=nil, standalone=nil)
663: super("1.0", version, encoding, standalone)
664: @feed_type = "atom"
665: @feed_subtype = "entry"
666: end
# File lib/rss/atom.rb, line 677
677: def have_author?
678: authors.any? {|author| !author.to_s.empty?} or
679: (source and source.have_author?)
680: end
# File lib/rss/atom.rb, line 672
672: def setup_maker(maker)
673: maker = maker.maker if maker.respond_to?("maker")
674: super(maker)
675: end
# File lib/rss/atom.rb, line 683
683: def atom_validate(ignore_unknown_element, tags, uri)
684: unless have_author?
685: raise MissingTagError.new("author", tag_name)
686: end
687: validate_duplicate_links(links)
688: end
# File lib/rss/atom.rb, line 690
690: def have_required_elements?
691: super and have_author?
692: end