lib/jamf/api/connection.rb
def parse_token(params)
      return unless params[:token].is_a? self.class::Token

      verify_token params[:token]
      @token = params[:token]
      params[:host] = @token.host
      params[:port] = @token.port
      params[:user] = @token.user
    end
# Get host, port, & user from a Token object
# or just the user from a token string.
Get host, port, & user from a Token object
or just the user from a token string.
Get host port & user from a Token object or just the user from a token string .
def parse_token(params)
      return unless params[:token].is_a? self.class::Token
      verify_token params[:token]
      @token = params[:token]
      params[:host] = @token.host
      params[:port] = @token.port
      params[:user] = @token.user
    end
def parse_token ( params ) return unless params [ :token ] . is_a? self . class :: Token verify_token params [ :token ] @token = params [ :token ] params [ :host ] = @token . host params [ :port ] = @token . port params [ :user ] = @token . user end
Get host, port, & user from a Token object
or just the user from a token string.
Get host port & user from a Token object or just the user from a token string .
params