Class: Instapaper::EpubDownloadPage

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

Instance Method Summary collapse

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

#downloadObject



103
104
105
# File 'lib/instapaper_download.rb', line 103

def download
  page = @agent.get(@url)
end