Sha256: ea8a2f7224f5bf0b3b6bf6185532a26932550fe100e0ba3b3b239045675302a8

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

module SocialProfile
  module Providers
    class Instagram < Base      
      def friends_count
        @friends_count ||= begin
          if auth_hash['extra'] && auth_hash['extra']['raw_info']
            count = auth_hash['extra']['raw_info']['counts']['followed_by']
            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/instagram.rb
social_profile-0.3.1 lib/social_profile/providers/instagram.rb
social_profile-0.3.0 lib/social_profile/providers/instagram.rb
social_profile-0.2.2 lib/social_profile/providers/instagram.rb
social_profile-0.2.1 lib/social_profile/providers/instagram.rb
social_profile-0.2.0 lib/social_profile/providers/instagram.rb