Class: SocialProfile::Providers::Twitter
- Defined in:
- lib/social_profile/providers/twitter.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#access_token, #avatar_url, #birthday, #city_name, #credentials, #email, #extra, #extra?, #first_name, #gender, #info, #info?, #initialize, #last_name, #name, #nickname, #picture_url, #profile_url, #provider, #token_expires_at, #uid, #works?
Constructor Details
This class inherits a constructor from SocialProfile::Providers::Base
Instance Method Details
#friends_count ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/social_profile/providers/twitter.rb', line 4 def friends_count @friends_count ||= begin if auth_hash['extra'] && auth_hash['extra']['raw_info'] count = auth_hash['extra']['raw_info']['followers_count'] count.to_i end end end |