Class: Zimbra::DelegateAuthTokenService::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/zimbra/delegate_auth_token.rb

Class Method Summary collapse

Class Method Details

.delegate_auth_token_response(account_name, response) ⇒ Object



40
41
42
43
44
45
# File 'lib/zimbra/delegate_auth_token.rb', line 40

def delegate_auth_token_response(, response)
  auth_token = (response/'//n2:authToken').to_s
  lifetime = (response/'//n2:lifetime').to_i
  
  Zimbra::DelegateAuthToken.new(account_name: , token: auth_token, lifetime: lifetime) 
end