Class: Raggle::Feed::Channel

Class | Raggle::Feed::Channel
In: | raggle (CVS)
Parent: | Object

Basic RSS Channel object. Used by RSS parser.

### Methods

find_element fix_character_encoding new parse_rss_url

### Attributes

desc | [RW] |
image | [RW] |
items | [RW] |
lang | [RW] |
last_modified | [RW] |
link | [RW] |
title | [RW] |

### Public Class methods

new(url, last_modified = nil)

Raggle::Feed::Channel constructor.

### Public Instance methods

find_element(elem, name)

Find element in content by using XPath specified in $config[‘item_element_xpaths’][name].

fix_character_encoding(element)

Use REXML to decode the specified element based the character encoding in $config[‘character_encoding’] (defaults to ‘ISO-8859-1’ if unset).

parse_rss_url(url, last_modified = nil)

Parse an RSS URL and populate this Raggle::Feed::Channel object. The actual feed items are stored as Raggle::Feed::Item objects in @items.

[Validate]