class BubbleWrap::RSSParser::RSSItem

RSSItem is a simple class that holds all of RSS items. Extend this class to display/process the item differently.

Attributes

category[RW]
creator[RW]
description[RW]
enclosure[RW]
encoded[RW]
guid[RW]
pubDate[RW]
title[RW]

Public Class Methods

new() click to toggle source
# File motion/rss_parser.rb, line 33
def initialize
  @title, @description, @link, @pubDate, @guid, @creator, @category, @encoded = '', '', '', '', ''
end

Public Instance Methods

to_hash() click to toggle source
# File motion/rss_parser.rb, line 37
def to_hash
  {
    :title        => title,
    :description  => description,
    :link         => link,
    :pubDate      => pubDate,
    :guid         => guid,
    :enclosure    => enclosure,
    :category     => category,
    :encoded      => encoded,
  }
end