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

Represents a parsed RSS feed, as returned by Syndication::RSS::Parser.

Methods

item=   new  

Attributes

channel  [RW]  The Channel metadata and contents of the feed as a Syndication::Channel object
image  [RW]  The image for the feed, as a Syndication::Image object.
items  [R]  The items in the feed as an Array of Syndication::Item objects.
textinput  [RW]  The text input area as a Syndication::TextInput object.

Public Class methods

[Source]

# File lib/syndication/rss.rb, line 280
    def initialize(parent, tag = nil, attrs = nil)
      # Explicitly initialize to nil to avoid warnings
      @items = @category = @skiphours = @skipdays = nil
      super
    end

Public Instance methods

Add an item to the feed.

[Source]

# File lib/syndication/rss.rb, line 287
    def item=(obj)
      if (!defined? @items) || (@items == nil)
        @items = Array.new
      end
      @items.push(obj)
    end

[Validate]