Method: Jamf::Connection::DefaultConnection#connect
- Defined in:
- lib/jamf/api/connection/default_connection.rb
#connect(url = nil, **params) ⇒ String Also known as: login, new_api_connection, new_api, new_cnx, new_connection
Create a new Connection object and use it as the default for all future API calls. This will replace the existing default connection with a totally new one
56 57 58 59 60 |
# File 'lib/jamf/api/connection/default_connection.rb', line 56 def connect(url = nil, **params) params[:name] ||= :default @default_connection = Jamf::Connection.new url, **params @default_connection.to_s end |