Sha256: 44f5e85dec3de2aa4ad01a5e7e256c7ca8587a491a22362f820fb0cb5d9f49a4

Contents?: true

Size: 299 Bytes

Versions: 14

Compression:

Stored size: 299 Bytes

Contents

require 'twitter/base'

module Twitter
  class Token < Twitter::Base
    attr_reader :access_token, :token_type
    alias_method :to_s, :access_token

    BEARER_TYPE = 'bearer'

    # @return [Boolean]
    def bearer?
      @attrs[:token_type] == BEARER_TYPE
    end
    memoize :bearer?
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
twitter-5.11.0 lib/twitter/token.rb
twitter-5.10.0 lib/twitter/token.rb
twitter-5.9.0 lib/twitter/token.rb
twitter-5.8.0 lib/twitter/token.rb
twitter-5.7.1 lib/twitter/token.rb
twitter-5.7.0 lib/twitter/token.rb
twitter-5.6.0 lib/twitter/token.rb
twitter-5.5.1 lib/twitter/token.rb
twitter-5.5.0 lib/twitter/token.rb
twitter-5.4.1 lib/twitter/token.rb
twitter-5.4.0 lib/twitter/token.rb
twitter-5.3.1 lib/twitter/token.rb
twitter-5.3.0 lib/twitter/token.rb
twitter-5.2.0 lib/twitter/token.rb