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

Methods

Included Modules

CommonModel DuplicateLinkChecker DublinCoreModel

Classes and Modules

Class RSS::Atom::Feed::Entry::Content
Class RSS::Atom::Feed::Entry::Published
Class RSS::Atom::Feed::Entry::Source
Class RSS::Atom::Feed::Entry::Summary

Constants

Author = Feed::Author
Category = Feed::Category
Contributor = Feed::Contributor
Id = Feed::Id
Link = Feed::Link
Rights = Feed::Rights
Title = Feed::Title
Updated = Feed::Updated

Public Instance methods

[Source]

     # File lib/rss/atom.rb, line 412
412:         def have_author?(check_parent=true)
413:           authors.any? {|author| !author.to_s.empty?} or
414:             (check_parent and @parent and @parent.have_author?) or
415:             (source and source.have_author?)
416:         end

Private Instance methods

[Source]

     # File lib/rss/atom.rb, line 419
419:         def atom_validate(ignore_unknown_element, tags, uri)
420:           unless have_author?
421:             raise MissingTagError.new("author", tag_name)
422:           end
423:           validate_duplicate_links(links)
424:         end

[Source]

     # File lib/rss/atom.rb, line 426
426:         def have_required_elements?
427:           super and have_author?
428:         end

[Source]

     # File lib/rss/atom.rb, line 430
430:         def maker_target(items)
431:           if items.respond_to?("items")
432:             # For backward compatibility
433:             items = items.items
434:           end
435:           items.new_item
436:         end

[Validate]