class SoapyBing::Helpers::ZipDownloader
Public Class Methods
new(url)
click to toggle source
# File lib/soapy_bing/helpers/zip_downloader.rb, line 9 def initialize(url) @url = url end
Public Instance Methods
read()
click to toggle source
# File lib/soapy_bing/helpers/zip_downloader.rb, line 13 def read Zip::InputStream.open(download_io) do |archive_io| file_io = archive_io.get_next_entry.get_input_stream file_io.read end end
Private Instance Methods
download_io()
click to toggle source
# File lib/soapy_bing/helpers/zip_downloader.rb, line 22 def download_io StringIO.new HTTParty.get(@url).body end