Class: Rssly::Feed

Inherits:
Object
  • Object
show all
Defined in:
lib/rssly/feed.rb

Overview

Represents a single rss feed and it’s metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#articlesObject

Returns the value of attribute articles.



13
14
15
# File 'lib/rssly/feed.rb', line 13

def articles
  @articles
end

#urlObject

Returns the value of attribute url.



12
13
14
# File 'lib/rssly/feed.rb', line 12

def url
  @url
end