Module Syndication::Syndication
In: lib/syndication/syndication.rb

Mixin for RSS 1.0 syndication data (draft standard for RSS 1.0).

If you require ‘syndication/syndication’ these methods are added to the Syndication::Channel class.

Access methods are named after the XML elements, prefixed with sy_.

Methods

Attributes

sy_updatebase  [R]  Base date used to calculate publishing times. When combined with sy_updateperiod and sy_updatefrequency, the publishing schedule can be derived. Returned as a DateTime if possible, otherwise as a String.
sy_updatefrequency  [RW]  Frequency of updates, in relation to sy_updateperiod. Indicates how many times in each sy_updateperiod the channel is updated. For example, sy_updateperiod = ‘daily’ and sy_updatefrequency = 4 means four times per day.
sy_updateperiod  [RW]  The period over which the channel is updated. Allowed values are ‘hourly’, ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’. If omitted, ‘daily’ is assumed.

Public Instance methods

[Source]

# File lib/syndication/syndication.rb, line 34
    def sy_updatebase=(x)
      d = DateTime.parse(x)
      if d
        @sy_updatebase = d
      else
        @sy_updatebase = x
      end
    end

[Validate]