Class: Syndication::RSS::Item
- Inherits:
-
Container
- Object
- Container
- Syndication::RSS::Item
- Includes:
- Content, DublinCore, Feedburner::Item, Podcast::Both, Podcast::Item
- Defined in:
- lib/syndication/rss.rb,
lib/syndication/content.rb,
lib/syndication/podcast.rb,
lib/syndication/feedburner.rb,
lib/syndication/dublincore.rb
Overview
Now we mix in the DublinCore elements to all the Syndication classes that can contain them. There's probably some clever way to do this via reflection, but there is such a thing as being too clever.
Instance Attribute Summary (collapse)
-
- (Object) author
E-mail address of item author.
-
- (Object) category
readonly
One or more categories for the item, as an Array of Strings.
-
- (Object) comments
URL for feedback on this item as a String.
-
- (Object) description
A textual description of the item as a String.
-
- (Object) enclosure
A media object attached to the item, as a Syndication::Enclosure.
-
- (Object) guid
A globally unique identifier for this item, a String.
-
- (Object) link
The URL of the item as a String.
-
- (Object) pubdate
Publication date as a DateTime if possible; if it won't parse, returns the original string.
-
- (Object) source
An RSS channel this item was copied from, used to give credit for copied links.
-
- (Object) title
The title of the item as a String.
Attributes included from DublinCore
#dc_contributor, #dc_coverage, #dc_creator, #dc_date, #dc_description, #dc_format, #dc_identifier, #dc_language, #dc_publisher, #dc_relation, #dc_rights, #dc_source, #dc_subject, #dc_title, #dc_type
Attributes included from Feedburner::Item
Attributes included from Podcast::Both
#itunes_block, #itunes_category, #itunes_explicit, #itunes_keywords, #itunes_subtitle, #itunes_summary
Attributes included from Podcast::Item
#itunes_author, #itunes_duration
Attributes included from Content
Method Summary
Methods included from Content
Methods inherited from Container
#initialize, #parse_date, #store, #store_category, #strip, #tag2method, #tag_end, #tag_start
Constructor Details
This class inherits a constructor from Syndication::Container
Instance Attribute Details
- (Object) author
E-mail address of item author.
55 56 57 |
# File 'lib/syndication/rss.rb', line 55 def @author end |
- (Object) category (readonly)
One or more categories for the item, as an Array of Strings.
57 58 59 |
# File 'lib/syndication/rss.rb', line 57 def category @category end |
- (Object) comments
URL for feedback on this item as a String.
60 61 62 |
# File 'lib/syndication/rss.rb', line 60 def comments @comments end |
- (Object) description
A textual description of the item as a String.
53 54 55 |
# File 'lib/syndication/rss.rb', line 53 def description @description end |
- (Object) enclosure
A media object attached to the item, as a Syndication::Enclosure.
62 63 64 |
# File 'lib/syndication/rss.rb', line 62 def enclosure @enclosure end |
- (Object) guid
A globally unique identifier for this item, a String.
64 65 66 |
# File 'lib/syndication/rss.rb', line 64 def guid @guid end |
- (Object) link
The URL of the item as a String.
51 52 53 |
# File 'lib/syndication/rss.rb', line 51 def link @link end |
- (Object) pubdate
Publication date as a DateTime if possible; if it won't parse, returns the original string.
75 76 77 |
# File 'lib/syndication/rss.rb', line 75 def pubdate parse_date(@pubdate) end |
- (Object) source
An RSS channel this item was copied from, used to give credit for copied links. A URL String.
71 72 73 |
# File 'lib/syndication/rss.rb', line 71 def source @source end |
- (Object) title
The title of the item as a String.
49 50 51 |
# File 'lib/syndication/rss.rb', line 49 def title @title end |