Class: SocialProfile::People::InstagramParser

Inherits:
SocialProfile::Person show all
Defined in:
lib/social_profile/people/instagram_parser.rb

Instance Attribute Summary

Attributes inherited from SocialProfile::Person

#access_token, #options, #uid

Instance Method Summary collapse

Methods inherited from SocialProfile::Person

#album!, #fetch_album, #find_album, #find_or_create_album, #followers_count, get, #initialize, #share_photo!, #tag_object!

Constructor Details

This class inherits a constructor from SocialProfile::Person

Instance Method Details

#friends_countObject



8
9
10
# File 'lib/social_profile/people/instagram_parser.rb', line 8

def friends_count
  user['followed_by']['count']
end

#last_postsObject



4
5
6
# File 'lib/social_profile/people/instagram_parser.rb', line 4

def last_posts
  RubyInstagramScraper.get_user_media_nodes(self.uid)['items']
end

#userObject



12
13
14
# File 'lib/social_profile/people/instagram_parser.rb', line 12

def user
  RubyInstagramScraper.get_user(self.uid)
end