File: token_provider.rb

package info (click to toggle)
ruby-aws-sdk-core 3.242.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,420 kB
  • sloc: ruby: 18,795; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Aws
  module TokenProvider

    # @return [Token]
    attr_reader :token

    # @api private
    # Returns UserAgent metrics for tokens.
    attr_accessor :metrics

    # @return [Boolean]
    def set?
      !!token && token.set?
    end

  end
end