Module: EzDownload

Defined in:
lib/ez_download.rb,
lib/ez_download/railtie.rb,
lib/ez_download/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.open(url) ⇒ Object



4
5
6
7
# File 'lib/ez_download.rb', line 4

def self.open(url)
  file = Net::HTTP.get_response(URI.parse(url))
  StringIO.new(file.body)
end