lib/twitter/token.rb in twitter-5.0.0.rc.1 vs lib/twitter/token.rb in twitter-5.0.0
- old
+ new
@@ -1,15 +1,17 @@
require 'twitter/base'
module Twitter
class Token < Twitter::Base
- attr_reader :token_type, :access_token
+ attr_reader :access_token, :token_type
+ alias to_s access_token
BEARER_TYPE = "bearer"
# @return [Boolean]
def bearer?
@attrs[:token_type] == BEARER_TYPE
end
+ memoize :bearer?
end
end