Class: Zimbra::DelegateAuthToken
- Inherits:
-
Object
- Object
- Zimbra::DelegateAuthToken
- Defined in:
- lib/zimbra/delegate_auth_token.rb
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#lifetime ⇒ Object
Returns the value of attribute lifetime.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ DelegateAuthToken
constructor
A new instance of DelegateAuthToken.
Constructor Details
#initialize(args = {}) ⇒ DelegateAuthToken
Returns a new instance of DelegateAuthToken.
13 14 15 16 17 |
# File 'lib/zimbra/delegate_auth_token.rb', line 13 def initialize(args = {}) self.account_name = args[:account_name] self.token = args[:token] self.lifetime = args[:lifetime] end |
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
11 12 13 |
# File 'lib/zimbra/delegate_auth_token.rb', line 11 def account_name @account_name end |
#lifetime ⇒ Object
Returns the value of attribute lifetime.
11 12 13 |
# File 'lib/zimbra/delegate_auth_token.rb', line 11 def lifetime @lifetime end |
#token ⇒ Object
Returns the value of attribute token.
11 12 13 |
# File 'lib/zimbra/delegate_auth_token.rb', line 11 def token @token end |
Class Method Details
.for_account_name(account_name) ⇒ Object
6 7 8 |
# File 'lib/zimbra/delegate_auth_token.rb', line 6 def for_account_name(account_name) DelegateAuthTokenService.get_by_account_name(account_name) end |