Module: Tweetkit::Auth

Included in:
Connection
Defined in:
lib/tweetkit/auth.rb

Instance Method Summary collapse

Instance Method Details

#bearer_auth?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/tweetkit/auth.rb', line 7

def bearer_auth?
  !!@bearer_token
end

#token_auth?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/tweetkit/auth.rb', line 3

def token_auth?
  !!(@consumer_key && @consumer_secret && @access_token && @access_token_secret)
end