Method: Code42::Connection#initialize

Defined in:
lib/code42/connection.rb

#initialize(options = {}) ⇒ Connection

Returns a new instance of Connection.



11
12
13
14
15
16
17
18
19
20
# File 'lib/code42/connection.rb', line 11

def initialize(options = {})
  self.host         = options[:host]
  self.port         = options[:port]
  self.scheme       = options[:scheme]
  self.path_prefix  = options[:path_prefix]
  self.username     = options[:username]
  self.password     = options[:password]
  self.token        = options[:token] if options[:token]
  self.verify_https = !options[:verify_https].nil? ? options[:verify_https] : true
end