class Aws::Token
Attributes
expiration[R]
@return [Time, nil]
token[R]
@return [String, nil]
Public Class Methods
new(token, expiration=nil)
click to toggle source
@param [String] token @param [Time] expiration
# File lib/aws-sdk-core/token.rb, line 8 def initialize(token, expiration=nil) @token = token @expiration = expiration end
Public Instance Methods
inspect()
click to toggle source
Removing the token from the default inspect string. @api private
# File lib/aws-sdk-core/token.rb, line 26 def inspect "#<#{self.class.name} token=[FILTERED]> expiration=#{expiration}>" end
set?()
click to toggle source
@return [Boolean] Returns ‘true` if token is set
# File lib/aws-sdk-core/token.rb, line 20 def set? !token.nil? && !token.empty? end