Method: Net::SFTP::Response#initialize
- Defined in:
- lib/net/sftp/response.rb
#initialize(request, data = {}) ⇒ Response
Create a new Response object for the given Net::SFTP::Request instance, and with the given data. If there is no :code key in the data, the code is assumed to be FX_OK.
34 35 36 37 |
# File 'lib/net/sftp/response.rb', line 34 def initialize(request, data={}) #:nodoc: @request, @data = request, data @code, = data[:code] || FX_OK, data[:message] end |