class RSS::Atom::Feed::Entry
定义 Atom
Entry
元素的子元素,该元素是 Atom
Feed
元素的子元素。它具有以下属性
-
author
-
category
-
categories
-
content
-
contributor
-
id
-
link
-
published
-
rights
-
source
-
summary
-
title
-
updated
常量
- Author
- Category
- Contributor
- Id
- Link
- Rights
- Title
- Updated
公共实例方法
私有实例方法
atom_validate(ignore_unknown_element, tags, uri) 单击以切换源代码
# File rss-0.3.1/lib/rss/atom.rb, line 581 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?() 单击以切换源代码
# File rss-0.3.1/lib/rss/atom.rb, line 588 def have_required_elements? super and have_author? end
maker_target(items) 单击以切换源代码
# File rss-0.3.1/lib/rss/atom.rb, line 592 def maker_target(items) if items.respond_to?("items") # For backward compatibility items = items.items end items.new_item end