Class: AuthTokenResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/AfricasTalking/Token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_, lifetimeInSeconds_) ⇒ AuthTokenResponse

Returns a new instance of AuthTokenResponse.



40
41
42
43
# File 'lib/AfricasTalking/Token.rb', line 40

def initialize token_, lifetimeInSeconds_
	@token      = token_
	@lifetimeInSeconds = lifetimeInSeconds_
end

Instance Attribute Details

#lifetimeInSecondsObject

Returns the value of attribute lifetimeInSeconds.



39
40
41
# File 'lib/AfricasTalking/Token.rb', line 39

def lifetimeInSeconds
  @lifetimeInSeconds
end

#tokenObject

Returns the value of attribute token.



39
40
41
# File 'lib/AfricasTalking/Token.rb', line 39

def token
  @token
end