Class: AuthTokenResponse
- Inherits:
-
Object
- Object
- AuthTokenResponse
- Defined in:
- lib/AfricasTalking/Token.rb
Instance Attribute Summary collapse
-
#lifetimeInSeconds ⇒ Object
Returns the value of attribute lifetimeInSeconds.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token_, lifetimeInSeconds_) ⇒ AuthTokenResponse
constructor
A new instance of AuthTokenResponse.
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
#lifetimeInSeconds ⇒ Object
Returns the value of attribute lifetimeInSeconds.
54 55 56 |
# File 'lib/AfricasTalking/Token.rb', line 54 def lifetimeInSeconds @lifetimeInSeconds end |
#token ⇒ Object
Returns the value of attribute token.
54 55 56 |
# File 'lib/AfricasTalking/Token.rb', line 54 def token @token end |