Class: OpdsMonster::FeedItem
- Inherits:
-
Object
- Object
- OpdsMonster::FeedItem
- Defined in:
- lib/opds_monster/feed_item.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #download(options = {}) ⇒ Object
-
#initialize(atom_entry) ⇒ FeedItem
constructor
A new instance of FeedItem.
Constructor Details
#initialize(atom_entry) ⇒ FeedItem
Returns a new instance of FeedItem.
4 5 6 7 |
# File 'lib/opds_monster/feed_item.rb', line 4 def initialize(atom_entry) @title = atom_entry.title @links = atom_entry.links end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/opds_monster/feed_item.rb', line 3 def title @title end |
Instance Method Details
#download(options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/opds_monster/feed_item.rb', line 9 def download( = {}) links_to_download.each do |link| download_http_file(link, ) end end |