Class: IMAPToRSS::RSSItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/imap_to_rss.rb

Overview

A Struct representing an RSS item for the RSS feed. Contains fields title, description, author, pub_date, link, guid, and category.

Typically, the message id of the email can be used for the guid. When the RSS feed is generated, the guid is never used as a URL (isPermaLink is set to false).

Instance Attribute Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def author
  @author
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def category
  @category
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def description
  @description
end

#guidObject

Returns the value of attribute guid

Returns:

  • (Object)

    the current value of guid



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def guid
  @guid
end

Returns the value of attribute link

Returns:

  • (Object)

    the current value of link



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def link
  @link
end

#pub_dateObject

Returns the value of attribute pub_date

Returns:

  • (Object)

    the current value of pub_date



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def pub_date
  @pub_date
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



28
29
30
# File 'lib/imap_to_rss.rb', line 28

def title
  @title
end