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

An entry within an Atom feed.

Methods

Included Modules

Google

Attributes

author  [RW]  Author of entry as a Person object.
categories  [R]  Array of taxonomic categories for feed.
content  [R]  Content element as Atom::Content object
contributors  [R]  Array of Person objects representing contributors.
created  [W]  Atom 0.3 creation date/time (obsolete)
id  [RW]  Globally unique ID of Entry.
links  [R]  Array of Link objects.
published  [W]  Publication date/time as DateTime object.
rights  [RW]  Copyright or other rights information.
source  [RW]  Source feed metadata as Feed object.
summary  [RW]  Summary of content.
title  [RW]  Title of entry.
updated  [W]  Last update date/time as DateTime object.

Public Instance methods

Add a Category object to the entry

[Source]

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

Add a Content object to the entry

[Source]

# File lib/syndication/atom.rb, line 430
    def content=(obj)
      @content = obj
    end

Add a Person to the entry to represent a contributor

[Source]

# File lib/syndication/atom.rb, line 443
    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 425
    def copyright=(x)
      @rights = x
    end

The DateTime of creation (Atom 0.3, obsolete)

[Source]

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

For Atom 0.3 compatibility

[Source]

# File lib/syndication/atom.rb, line 420
    def issued=(x)
      @published = x
    end

Add a Link to the entry

[Source]

# File lib/syndication/atom.rb, line 451
    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 415
    def modified=(x)
      @updated = x
    end

The DateTime of publication

[Source]

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

The last update DateTime

[Source]

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

[Validate]