Module: Twitter::Authenticatable

Included in:
Client, User
Defined in:
lib/twitter/authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#credentialsHash

Credentials hash

Returns:



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

Returns:

  • (Boolean)


19
20
21
# File 'lib/twitter/authenticatable.rb', line 19

def credentials?
  credentials.values.all?
end