lib/jamf/api/connection/token.rb
def parse_token_from_response(resp)
        @token_response_body = resp.body
        @auth_token = AUTH_TOKEN_PFX + @token_response_body[:token]
        @expires = Jamf::Timestamp.new @token_response_body[:expires]
        @login_time = Jamf::Timestamp.new Time.now
        @valid = true
      end
# Parse the API token data into instance vars.
Parse the API token data into instance vars.
Parse the API token data into instance vars .
def parse_token_from_response(resp)
        @token_response_body = resp.body
        @auth_token = AUTH_TOKEN_PFX + @token_response_body[:token]
        @expires = Jamf::Timestamp.new @token_response_body[:expires]
        @login_time = Jamf::Timestamp.new Time.now
        @valid = true
      end
def parse_token_from_response ( resp ) @token_response_body = resp . body @auth_token = AUTH_TOKEN_PFX + @token_response_body [ :token ] @expires = Jamf :: Timestamp . new @token_response_body [ :expires ] @login_time = Jamf :: Timestamp . new Time . now @valid = true end
Parse the API token data into instance vars.
Parse the API token data into instance vars .
resp