Class: Section
- Inherits:
-
Object
- Object
- Section
- Defined in:
- lib/kindle-feeds.rb
Instance Attribute Summary collapse
-
#feeds ⇒ Object
Returns the value of attribute feeds.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uris ⇒ Object
Returns the value of attribute uris.
Instance Method Summary collapse
-
#initialize(title, uris) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(title, uris) ⇒ Section
Returns a new instance of Section.
193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/kindle-feeds.rb', line 193 def initialize(title, uris) @feeds = [] @title = title @uris = uris # generate the feeds @uris.each do |uri| if (feed=Feed.subscribe(uri)) @feeds << feed end end end |
Instance Attribute Details
#feeds ⇒ Object
Returns the value of attribute feeds.
192 193 194 |
# File 'lib/kindle-feeds.rb', line 192 def feeds @feeds end |
#title ⇒ Object
Returns the value of attribute title.
192 193 194 |
# File 'lib/kindle-feeds.rb', line 192 def title @title end |
#uris ⇒ Object
Returns the value of attribute uris.
192 193 194 |
# File 'lib/kindle-feeds.rb', line 192 def uris @uris end |