Method: Connection#initialize
- Defined in:
- lib/ukku/connection.rb
#initialize(opts) ⇒ Connection
Returns a new instance of Connection.
2 3 4 5 6 7 8 |
# File 'lib/ukku/connection.rb', line 2 def initialize(opts) = opts.each_with_object({}) { |(k,v), h| h[k.to_sym] = v } @host = [:host] @user = [:user] @identity_file = [:identity_file] end |