Module: Twitter::Authenticatable
Instance Method Summary collapse
-
#credentials ⇒ Hash
Credentials hash.
-
#credentials? ⇒ Boolean
Check whether credentials are present.
Instance Method Details
#credentials ⇒ Hash
Credentials hash
7 8 9 10 11 12 13 14 |
# File 'lib/twitter/authenticatable.rb', line 7 def credentials { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :token => oauth_token, :token_secret => oauth_token_secret, } end |
#credentials? ⇒ Boolean
Check whether credentials are present
19 20 21 |
# File 'lib/twitter/authenticatable.rb', line 19 def credentials? credentials.values.all? end |