Class: RIO::FTP::FTPFile
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(remote_path, netftp) ⇒ FTPFile
constructor
A new instance of FTPFile.
Constructor Details
#initialize(remote_path, netftp) ⇒ FTPFile
Returns a new instance of FTPFile.
7 8 9 10 11 12 |
# File 'lib/rio/ftp/ftpfile.rb', line 7 def initialize(remote_path, netftp) @remote_path = remote_path @netftp = netftp @ftpfile = ::Tempfile.new('ftpfile') super(@ftpfile) end |
Instance Method Details
#close ⇒ Object
13 14 15 16 |
# File 'lib/rio/ftp/ftpfile.rb', line 13 def close() super @netftp.put(path(),@remote_path) end |