Class Syndication::Atom::Feed
In: lib/syndication/google.rb
lib/syndication/atom.rb
Parent: Syndication::Container

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

Methods

Included Modules

Google

Attributes

author  [RW]  Author of feed as a Syndication::Person object.
categories  [R]  Array of Syndication::Category objects representing taxonomic categories for the feed.
contributors  [R]  Array of Syndication::Person objects representing contributors.
entries  [R]  Array of Syndication::Entry objects representing the entries in the feed.
generator  [RW]  Software which generated feed as a String.
icon  [RW]  URI of icon to represent channel as a String.
id  [RW]  Globally unique ID of feed as a String.
info  [RW]  Atom 0.3 info element (obsolete)
links  [R]  Array of Syndication::Link objects representing various types of link.
logo  [RW]  URI of logo for channel as a String.
rights  [RW]  Copyright or other rights information as a String.
subtitle  [RW]  Subtitle of feed as a Syndication::Data object.
title  [RW]  Title of feed as a Syndication::Data object.
updated  [W]  Last update time, accepts an ISO8601 date/time as per the Atom spec.

Public Instance methods

Add a Syndication::Category value to the feed

[Source]

# File lib/syndication/atom.rb, line 347
    def category=(obj)
      if !defined? @categories
        @categories = Array.new
      end
      @categories.push(obj)
    end

Add a Syndication::Person contributor to the feed

[Source]

# File lib/syndication/atom.rb, line 363
    def contributor=(obj)
      if !defined? @contributors
        @contributors = Array.new
      end
      @contributors.push(obj)
    end

For Atom 0.3 compatibility

[Source]

# File lib/syndication/atom.rb, line 337
    def copyright=(x)
      @rights = x
    end

Add a Syndication::Entry to the feed

[Source]

# File lib/syndication/atom.rb, line 355
    def entry=(obj)
      if !defined? @entries
        @entries = Array.new
      end
      @entries.push(obj)
    end

Add a Syndication::Link to the feed

[Source]

# File lib/syndication/atom.rb, line 371
    def link=(obj)
      if !defined? @links
        @links = Array.new
      end
      @links.push(obj)
    end

For Atom 0.3 compatibility

[Source]

# File lib/syndication/atom.rb, line 342
    def modified=(x)
      @updated = x
    end

For Atom 0.3 compatibility

[Source]

# File lib/syndication/atom.rb, line 332
    def tagline=(x)
      @subtitle = x
    end

Last update date/time as a DateTime object if it can be parsed, a String otherwise.

[Source]

# File lib/syndication/atom.rb, line 380
    def updated
      parse_date(@updated)
    end

[Validate]