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.
40 41 42 43 |
# File 'lib/AfricasTalking/Token.rb', line 40 def initialize token_, lifetimeInSeconds_ @token = token_ @lifetimeInSeconds = lifetimeInSeconds_ end |
Instance Attribute Details
#lifetimeInSeconds ⇒ Object
Returns the value of attribute lifetimeInSeconds.
39 40 41 |
# File 'lib/AfricasTalking/Token.rb', line 39 def lifetimeInSeconds @lifetimeInSeconds end |
#token ⇒ Object
Returns the value of attribute token.
39 40 41 |
# File 'lib/AfricasTalking/Token.rb', line 39 def token @token end |