Method: Codebot::Network#update_connection
- Defined in:
- lib/codebot/network.rb
#update_connection(host, port, secure) ⇒ Object
Updates the connection details of this network.
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/codebot/network.rb', line 92 def update_connection(host, port, secure) @host = valid! host, valid_host(host), :@host, required: true, required_error: 'networks must have a hostname', invalid_error: 'invalid hostname %s' @port = valid! port, valid_port(port), :@port, invalid_error: 'invalid port number %s' @secure = valid!(secure, valid_boolean(secure), :@secure, invalid_error: 'secure must be a boolean') { false } end |