| Class | Syndication::RSS::Channel |
| In: |
lib/syndication/rss.rb
|
| Parent: | Syndication::Container |
Represents metadata about an RSS feed as a whole. Typically found via the Syndication::RSS::Feed#channel method.
| store_category | -> | category= |
| category | [RW] | One or more categories for the channel, as an Array of Strings. |
| cloud | [RW] | rssCloud interface (for Radio UserLand). |
| copyright | [RW] | Copyright statement for channel. |
| description | [RW] | A textual description of the channel. |
| docs | [RW] | The URL of some documentation on what the RSS format is. |
| generator | [RW] | The software that generated the channel. |
| image | [RW] | The graphical image to represent the channel, as a Syndication::Image object. |
| language | [RW] | ISO code for the language the channel is written in. |
| lastbuilddate | [W] | Last time content in channel changed. |
| link | [RW] | The URL of the web site this is a channel for. |
| managingeditor | [RW] | E-mail address of person responsible for editorial content. |
| pubdate | [W] | Publication date of content in channel. |
| rating | [RW] | PICS rating for channel. |
| skipdays | [R] | Full names (in English) of days when the feed can be skipped. |
| skiphours | [R] | Hours when the feed can be skipped (because it will not have new content). Returned as an Array of values in the range 0..23 (even if parsing the UserLand variant of RSS 0.91). |
| textinput | [RW] | The TextInput area as a Syndication::TextInput object. |
| title | [RW] | The title of the channel. |
| ttl | [RW] | Time to live for this copy of the channel. |
| webmaster | [RW] | E-mail address of person responsible for technical issues with feed. |
Add a day name to the list of days to skip.
The
# File lib/syndication/rss.rb, line 202 def day=(dayname) if dayname.kind_of?(String) if !defined? @skipdays @skipdays = Array.new end @skipdays << dayname end end
Add an hour to the list of hours to skip.
The
# File lib/syndication/rss.rb, line 188 def hour=(hr) if hr.kind_of?(String) if !defined? @skiphours @skiphours = Array.new end h = hr.to_i @skiphours << (h == 24 ? 0 : h) end end