class RSS::Atom::Entry
Constants
- Author
- Category
- Content
- Contributor
- Id
- Link
- Published
- Rights
- Source
- Summary
- Title
- Updated
Public Class Methods
new(version=nil, encoding=nil, standalone=nil)
click to toggle source
Creates a new Atom Entry element
Calls superclass method
RSS::RootElementMixin.new
# File lib/rss/atom.rb, line 749 def initialize(version=nil, encoding=nil, standalone=nil) super("1.0", version, encoding, standalone) @feed_type = "atom" @feed_subtype = "entry" end
Public Instance Methods
items()
click to toggle source
Returns the Entry in an array
# File lib/rss/atom.rb, line 756 def items [self] end
setup_maker(maker)
click to toggle source
sets up the maker
for constructing Entry elements
Calls superclass method
RSS::RootElementMixin#setup_maker
# File lib/rss/atom.rb, line 761 def setup_maker(maker) maker = maker.maker if maker.respond_to?("maker") super(maker) end
Private Instance Methods
atom_validate(ignore_unknown_element, tags, uri)
click to toggle source
# File lib/rss/atom.rb, line 773 def atom_validate(ignore_unknown_element, tags, uri) unless have_author? raise MissingTagError.new("author", tag_name) end validate_duplicate_links(links) end
have_required_elements?()
click to toggle source
Calls superclass method
RSS::Element#have_required_elements?
# File lib/rss/atom.rb, line 780 def have_required_elements? super and have_author? end
maker_target(maker)
click to toggle source
# File lib/rss/atom.rb, line 784 def maker_target(maker) maker.items.new_item end