Represents a single blog post or article from a feed
This class encapsulates all the data for a feed entry with proper
type safety and convenience methods for display and comparison.
Constructors
Creates a new feed entry with the specified properties
SourceInstance methods
<=>(other : self) :
Int32 Comparison method for sorting (newest first by default)
Sourceauthor
Author of the blog post (optional)
Sourceauthor=(author :
String |
Nil)
Author of the blog post (optional)
Sourcedisplay_author
Returns the author name for display, with fallback to "Unknown"
Sourcedisplay_summary
Returns the summary for display, with fallback to empty string
Sourcefeed_link
URL of the feed this entry belongs to (required)
Sourcefeed_link=(feed_link :
String)
URL of the feed this entry belongs to (required)
Sourcefeed_link?
URL of the feed this entry belongs to (required)
Sourcefeed_title
Title of the feed this entry belongs to (required)
Sourcefeed_title=(feed_title :
String)
Title of the feed this entry belongs to (required)
Sourcefeed_title?
Title of the feed this entry belongs to (required)
Sourcehas_content?
Checks if this entry has meaningful content
Sourceid
Unique identifier for this entry (required)
SourceUnique identifier for this entry (required)
Sourceid?
Unique identifier for this entry (required)
Sourcelink
URL to the full blog post (required)
SourceURL to the full blog post (required)
Sourcelink?
URL to the full blog post (required)
SourceReturns true if this entry matches the search query
SourceReturns true if this entry is newer than the specified time
Sourcepublished
When the post was originally published
Sourcepublished=(published :
Time)
When the post was originally published
Sourcesafe_author_website
Returns the author's website URL (base URL extracted from feed_link)
Sourcesafe_feed_link
Returns a safe URL for use in href attributes on feed links
Sourcesafe_link
Returns a safe URL for use in href attributes
Sourcesummary
Summary or excerpt of the blog post (optional)
Sourcesummary=(summary :
String |
Nil)
Summary or excerpt of the blog post (optional)
Sourcetime_ago
Returns the time elapsed since publication in human-readable format
Sourcetitle
Title of the blog post (required)
SourceTitle of the blog post (required)
Sourcetitle?
Title of the blog post (required)
SourceString representation for debugging
SourceReturns a truncated version of the summary for display
Sourceupdated
When the post was last updated
SourceWhen the post was last updated
Source