lib/jamf/api/connection.rb
# A useful string about this connection
#
# @return [String]
#
A useful string about this connection
A useful string about this connection
def to_s
      str =
        if connected?
          "#{@base_url}, Token expires: #{@token ? @token.expires : '<token missing>'}"
        else
          NOT_CONNECTED
        end
      "Jamf::Connection '#{@name == NOT_CONNECTED ? object_id : @name}': #{str}"
    end
def to_s str = if connected? "#{@base_url}, Token expires: #{@token ? @token.expires : '<token missing>'}" else NOT_CONNECTED end "Jamf::Connection '#{@name == NOT_CONNECTED ? object_id : @name}': #{str}" end
A useful string about this connection
A useful string about this connection
None
String