Class: Zimbra::DelegateAuthToken

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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. = args[:account_name]
  self.token = args[:token]
  self.lifetime = args[:lifetime]
end

Instance Attribute Details

#account_nameObject

Returns the value of attribute account_name.



11
12
13
# File 'lib/zimbra/delegate_auth_token.rb', line 11

def 
  @account_name
end

#lifetimeObject

Returns the value of attribute lifetime.



11
12
13
# File 'lib/zimbra/delegate_auth_token.rb', line 11

def lifetime
  @lifetime
end

#tokenObject

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 ()
  DelegateAuthTokenService.()
end