Class: Aws::Token
- Inherits:
-
Object
- Object
- Aws::Token
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/token.rb
Instance Attribute Summary collapse
-
#expiration ⇒ Time?
readonly
-
#token ⇒ String?
readonly
Instance Method Summary collapse
-
#initialize(token, expiration = nil) ⇒ Token
constructor
A new instance of Token.
-
#set? ⇒ Boolean
Returns
true
if token is set.
Constructor Details
#initialize(token, expiration = nil) ⇒ Token
Returns a new instance of Token.
8 9 10 11 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/token.rb', line 8 def initialize(token, expiration=nil) @token = token @expiration = expiration end |
Instance Attribute Details
#expiration ⇒ Time? (readonly)
17 18 19 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/token.rb', line 17 def expiration @expiration end |
#token ⇒ String? (readonly)
14 15 16 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/token.rb', line 14 def token @token end |
Instance Method Details
#set? ⇒ Boolean
Returns true
if token is set
20 21 22 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/token.rb', line 20 def set? !token.nil? && !token.empty? end |