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.



55
56
57
58
# File 'lib/AfricasTalking/Token.rb', line 55

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

Instance Attribute Details

#lifetimeInSecondsObject

Returns the value of attribute lifetimeInSeconds.



54
55
56
# File 'lib/AfricasTalking/Token.rb', line 54

def lifetimeInSeconds
  @lifetimeInSeconds
end

#tokenObject

Returns the value of attribute token.



54
55
56
# File 'lib/AfricasTalking/Token.rb', line 54

def token
  @token
end