Class: Rssly::Feed
- Inherits:
-
Object
- Object
- Rssly::Feed
- Defined in:
- lib/rssly/feed.rb
Overview
Represents a single rss feed and it’s metadata
Instance Attribute Summary collapse
-
#articles ⇒ Object
Returns the value of attribute articles.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url: nil) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(url: nil) ⇒ Feed
Returns a new instance of Feed.
15 16 17 |
# File 'lib/rssly/feed.rb', line 15 def initialize(url: nil) self.url = url end |
Instance Attribute Details
#articles ⇒ Object
Returns the value of attribute articles.
13 14 15 |
# File 'lib/rssly/feed.rb', line 13 def articles @articles end |
#url ⇒ Object
Returns the value of attribute url.
12 13 14 |
# File 'lib/rssly/feed.rb', line 12 def url @url end |