Class: Section

Inherits:
Object
  • Object
show all
Defined in:
lib/kindle-feeds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#feedsObject

Returns the value of attribute feeds.



192
193
194
# File 'lib/kindle-feeds.rb', line 192

def feeds
  @feeds
end

#titleObject

Returns the value of attribute title.



192
193
194
# File 'lib/kindle-feeds.rb', line 192

def title
  @title
end

#urisObject

Returns the value of attribute uris.



192
193
194
# File 'lib/kindle-feeds.rb', line 192

def uris
  @uris
end