Module: Tweetkit::Auth
- Included in:
- Connection
- Defined in:
- lib/tweetkit/auth.rb
Instance Method Summary collapse
Instance Method Details
#basic_auth? ⇒ Boolean
3 4 5 |
# File 'lib/tweetkit/auth.rb', line 3 def basic_auth? !!(@login && @password) end |
#bearer_auth? ⇒ Boolean
11 12 13 |
# File 'lib/tweetkit/auth.rb', line 11 def bearer_auth? !!@bearer_token end |
#token_auth? ⇒ Boolean
7 8 9 |
# File 'lib/tweetkit/auth.rb', line 7 def token_auth? !!(@access_token && @access_token_secret) end |