Class: Zimbra::DelegateAuthTokenService::Parser
- Inherits:
-
Object
- Object
- Zimbra::DelegateAuthTokenService::Parser
- 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(account_name, response) auth_token = (response/'//n2:authToken').to_s lifetime = (response/'//n2:lifetime').to_i Zimbra::DelegateAuthToken.new(account_name: account_name, token: auth_token, lifetime: lifetime) end |