Class Syndication::RSS::Item
In: lib/syndication/rss.rb
lib/syndication/feedburner.rb
Parent: Syndication::Container

Represents an individual story or entry in an RSS feed.

Methods

pubdate  

Included Modules

Feedburner::Item

External Aliases

store_category -> category=

Attributes

author  [RW]  E-mail address of item author.
category  [R]  One or more categories for the item, as an Array of Strings.
comments  [RW]  URL for feedback on this item as a String.
description  [RW]  A textual description of the item as a String.
enclosure  [RW]  A media object attached to the item, as a Syndication::Enclosure.
guid  [RW]  A globally unique identifier for this item, a String.
link  [RW]  The URL of the item as a String.
pubdate  [W]  The publication date for this item. Accepts anything DateTime can parse, which includes RFC822-style dates as specified by the RSS standards.
source  [RW]  An RSS channel this item was copied from, used to give credit for copied links. A URL String.
title  [RW]  The title of the item as a String.

Public Instance methods

Publication date as a DateTime if possible; if it won’t parse, returns the original string.

[Source]

# File lib/syndication/rss.rb, line 75
    def pubdate
      parse_date(@pubdate)
    end

[Validate]