Sha256: fdb13cd9aae9009b9f4c1488b28d7b72dcaafbf47f122a8babcd4caf65c72dcb

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

module SocialProfile
  module Providers
    class Twitter < Base      
      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
    end
  end  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
social_profile-0.3.2 lib/social_profile/providers/twitter.rb
social_profile-0.3.1 lib/social_profile/providers/twitter.rb
social_profile-0.3.0 lib/social_profile/providers/twitter.rb
social_profile-0.2.2 lib/social_profile/providers/twitter.rb
social_profile-0.2.1 lib/social_profile/providers/twitter.rb
social_profile-0.2.0 lib/social_profile/providers/twitter.rb