Class: SocialProfile::People::InstagramParser
- Inherits:
-
SocialProfile::Person
- Object
- SocialProfile::Person
- SocialProfile::People::InstagramParser
- Defined in:
- lib/social_profile/people/instagram_parser.rb
Instance Attribute Summary
Attributes inherited from SocialProfile::Person
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_count ⇒ Object
8 9 10 |
# File 'lib/social_profile/people/instagram_parser.rb', line 8 def friends_count user['followed_by']['count'] end |
#last_posts ⇒ Object
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 |
#user ⇒ Object
12 13 14 |
# File 'lib/social_profile/people/instagram_parser.rb', line 12 def user RubyInstagramScraper.get_user(self.uid) end |