Class: Twitter::Token
- Inherits:
-
Base
- Object
- Base
- Twitter::Token
show all
- Includes:
- Memoizable
- Defined in:
- lib/twitter/token.rb
Constant Summary
collapse
- BEARER_TYPE =
'bearer'.freeze
Instance Attribute Summary collapse
Attributes inherited from Base
#attrs
Instance Method Summary
collapse
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, deprecate_attribute_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader
Methods included from Utils
flat_pmap, pmap
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Attribute Details
#access_token ⇒ String
Also known as:
to_s
9
10
11
|
# File 'lib/twitter/token.rb', line 9
def access_token
@access_token
end
|
#token_type ⇒ String
9
10
11
|
# File 'lib/twitter/token.rb', line 9
def token_type
@token_type
end
|
Instance Method Details
#bearer? ⇒ Boolean
15
16
17
|
# File 'lib/twitter/token.rb', line 15
def bearer?
@attrs[:token_type] == BEARER_TYPE
end
|