Class: Instapaper::EpubDownloadPage
- Inherits:
-
Object
- Object
- Instapaper::EpubDownloadPage
- Defined in:
- lib/instapaper_download.rb
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize(agent) ⇒ EpubDownloadPage
constructor
A new instance of EpubDownloadPage.
Constructor Details
#initialize(agent) ⇒ EpubDownloadPage
Returns a new instance of EpubDownloadPage.
99 100 101 102 |
# File 'lib/instapaper_download.rb', line 99 def initialize(agent) @agent = agent @url = "http://www.instapaper.com/epub" end |
Instance Method Details
#download ⇒ Object
103 104 105 |
# File 'lib/instapaper_download.rb', line 103 def download page = @agent.get(@url) end |