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( = {}) self.host = [:host] self.port = [:port] self.scheme = [:scheme] self.path_prefix = [:path_prefix] self.username = [:username] self.password = [:password] self.token = [:token] if [:token] self.verify_https = ![:verify_https].nil? ? [:verify_https] : true end |