Class: Syndication::RSS::Item

Inherits:
Container show all
Includes:
Content, DublinCore, Feedburner::Item, Podcast::Both, Podcast::Item
Defined in:
lib/syndication/rss.rb,
lib/syndication/content.rb,
lib/syndication/podcast.rb,
lib/syndication/feedburner.rb,
lib/syndication/dublincore.rb

Overview

Now we mix in the DublinCore elements to all the Syndication classes that can contain them. There's probably some clever way to do this via reflection, but there is such a thing as being too clever.

Instance Attribute Summary collapse

Attributes included from DublinCore

#dc_contributor, #dc_coverage, #dc_creator, #dc_date, #dc_description, #dc_format, #dc_identifier, #dc_language, #dc_publisher, #dc_relation, #dc_rights, #dc_source, #dc_subject, #dc_title, #dc_type

Attributes included from Feedburner::Item

#feedburner_origlink

Attributes included from Podcast::Both

#itunes_block, #itunes_category, #itunes_explicit, #itunes_keywords, #itunes_subtitle, #itunes_summary

Attributes included from Podcast::Item

#itunes_author, #itunes_duration

Attributes included from Content

#content_encoded

Method Summary

Methods included from Content

#content_decoded

Methods inherited from Container

#initialize, #parse_date, #store, #store_category, #strip, #tag2method, #tag_end, #tag_start

Constructor Details

This class inherits a constructor from Syndication::Container

Instance Attribute Details

#authorObject

E-mail address of item author.



55
56
57
# File 'lib/syndication/rss.rb', line 55

def author
  @author
end

#categoryObject (readonly)

One or more categories for the item, as an Array of Strings.



57
58
59
# File 'lib/syndication/rss.rb', line 57

def category
  @category
end

#commentsObject

URL for feedback on this item as a String.



60
61
62
# File 'lib/syndication/rss.rb', line 60

def comments
  @comments
end

#descriptionObject

A textual description of the item as a String.



53
54
55
# File 'lib/syndication/rss.rb', line 53

def description
  @description
end

#enclosureObject

A media object attached to the item, as a Syndication::Enclosure.



62
63
64
# File 'lib/syndication/rss.rb', line 62

def enclosure
  @enclosure
end

#guidObject

A globally unique identifier for this item, a String.



64
65
66
# File 'lib/syndication/rss.rb', line 64

def guid
  @guid
end

The URL of the item as a String.



51
52
53
# File 'lib/syndication/rss.rb', line 51

def link
  @link
end

#pubdateObject

Publication date as a DateTime if possible; if it won't parse, returns the original string.



75
76
77
# File 'lib/syndication/rss.rb', line 75

def pubdate
  parse_date(@pubdate)
end

#sourceObject

An RSS channel this item was copied from, used to give credit for copied links. A URL String.



71
72
73
# File 'lib/syndication/rss.rb', line 71

def source
  @source
end

#titleObject

The title of the item as a String.



49
50
51
# File 'lib/syndication/rss.rb', line 49

def title
  @title
end