Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 439 Bytes
module Twitter
module Authenticatable
# Credentials hash
#
# @return [Hash]
def credentials
{
:consumer_key => consumer_key,
:consumer_secret => consumer_secret,
:token => oauth_token,
:token_secret => oauth_token_secret,
}
end
# Check whether user is authenticated
#
# @return [Boolean]
def authenticated?
credentials.values.all?
end
end
end
Jump to Line
Something went wrong with that request. Please try again.