Method: XFTP::Session::Base#initialize

Defined in:
lib/xftp/session/base.rb

#initialize(uri, settings = {}) ⇒ Base

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Creates a session adapter instance

Parameters:

  • uri (URI)

    the remote uri

  • settings (Hash) (defaults to: {})

    the adapter connection settings



17
18
19
20
21
# File 'lib/xftp/session/base.rb', line 17

def initialize(uri, settings = {})
  @uri = uri
  @credentials = settings.delete(:credentials) || {}
  @settings = settings
end