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

Mixin for Dublin Core metadata in RSS feeds.

If you require ‘syndication/dublincore’ these methods are added to the Syndication::Channel, Syndication::Item, Syndication::Image and Syndication::TextInput classes.

The access method names are the Dublin Core element names, prefixed with dc_.

Methods

dc_date  

Attributes

dc_contributor  [RW]  Entity responsible for contributing this item.
dc_coverage  [RW]  The extent or scope of coverage of the item, e.g. a geographical area.
dc_creator  [RW]  The entity primarily responsible for making the content of the item.
dc_date  [W]  Date of creation or availability of item.
dc_description  [RW]  A description of the content of the item.
dc_format  [RW]  Physical or digital format of item.
dc_identifier  [RW]  An unambigious identifier which identifies the item.
dc_language  [RW]  The language the item is in, coded as per RFC 1766.
dc_publisher  [RW]  Entity responsible for making the item available.
dc_relation  [RW]  A reference to a related resource.
dc_rights  [RW]  Information about rights held over the item, e.g. copyright or patents.
dc_source  [RW]  A reference to a resource from which the item is derived.
dc_subject  [RW]  The topic of the content of the item, typically as keywords or key phrases.
dc_title  [RW]  A name by which the item is formally known.
dc_type  [RW]  Nature or genre of item, usually from a controlled vocabulary.

Public Instance methods

Date of creation or availability of item. Returned as a DateTime if it will parse; otherwise, returned as a string. (Dublin Core does not require any particular date and time format, so guaranteeing parsing is not possible.)

[Source]

# File lib/syndication/dublincore.rb, line 41
    def dc_date
      if @dc_date and !@dc_date.kind_of?(DateTime)
        @dc_date = DateTime.parse(@dc_date)
      end
      return @dc_date
    end

[Validate]