class Aws::EC2Metadata::Token

@api private

def expired?

[Boolean] Returns true if the token expired.
def expired?
  Time.now - @created_time > @ttl
end

def initialize(options = {})

def initialize(options = {})
  @ttl   = options[:ttl]
  @value = options[:value]
  @created_time = options[:created_time] || Time.now
end