Class RSS::Atom::Entry
In: lib/rss/atom.rb
lib/rss/dublincore/atom.rb
Parent: RSS::Element

Methods

Included Modules

RootElementMixin CommonModel DuplicateLinkChecker DublinCoreModel

Constants

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

Public Class methods

[Source]

     # 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

Public Instance methods

[Source]

     # 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

[Source]

     # File lib/rss/atom.rb, line 668
668:       def items
669:         [self]
670:       end

[Source]

     # 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

Private Instance methods

[Source]

     # 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

[Source]

     # File lib/rss/atom.rb, line 690
690:       def have_required_elements?
691:         super and have_author?
692:       end

[Source]

     # File lib/rss/atom.rb, line 694
694:       def maker_target(maker)
695:         maker.items.new_item
696:       end

[Validate]