Class: Oode::Downloader
- Inherits:
-
Transferer
- Object
- Session
- Transferer
- Oode::Downloader
- 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
Instance Method Summary collapse
Methods inherited from Transferer
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 |