Class: Oode::Downloader

Inherits:
Transferer show all
Defined in:
lib/oode/net/downloader.rb

Constant Summary

Constants inherited from Session

Session::DEFAULT_HOST, Session::SERVER

Instance Attribute Summary

Attributes inherited from Session

#user

Instance Method Summary collapse

Methods inherited from Transferer

#initialize

Methods inherited from Session

#close, #connection, #exec!, #initialize

Constructor Details

This class inherits a constructor from Oode::Transferer

Instance Method Details

#download!(path) ⇒ Object



3
4
5
6
# File 'lib/oode/net/downloader.rb', line 3

def download!(path)
  filename = ::File.basename(path)
  @transfer.download! path, "./#{filename}"
end