Class: OpdsMonster::FeedItem

Inherits:
Object
  • Object
show all
Defined in:
lib/opds_monster/feed_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#titleObject (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(options = {})
  links_to_download.each do |link|
    download_http_file(link, options)
  end
end