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