Class: InstaScrape::InstagramUserWithPosts
- Inherits:
-
Object
- Object
- InstaScrape::InstagramUserWithPosts
- Defined in:
- lib/models/instagram_user_with_posts.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#follower_count ⇒ Object
Returns the value of attribute follower_count.
-
#following_count ⇒ Object
Returns the value of attribute following_count.
-
#image ⇒ Object
Returns the value of attribute image.
-
#post_count ⇒ Object
Returns the value of attribute post_count.
-
#posts ⇒ Object
Returns the value of attribute posts.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, image, post_count, follower_count, following_count, description, posts) ⇒ InstagramUserWithPosts
constructor
A new instance of InstagramUserWithPosts.
Constructor Details
#initialize(username, image, post_count, follower_count, following_count, description, posts) ⇒ InstagramUserWithPosts
Returns a new instance of InstagramUserWithPosts.
3 4 5 6 7 8 9 10 11 |
# File 'lib/models/instagram_user_with_posts.rb', line 3 def initialize(username, image, post_count, follower_count, following_count, description, posts) @username = username @image = image @post_count = post_count @follower_count = follower_count @following_count = following_count @description = description @posts = posts end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def description @description end |
#follower_count ⇒ Object
Returns the value of attribute follower_count.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def follower_count @follower_count end |
#following_count ⇒ Object
Returns the value of attribute following_count.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def following_count @following_count end |
#image ⇒ Object
Returns the value of attribute image.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def image @image end |
#post_count ⇒ Object
Returns the value of attribute post_count.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def post_count @post_count end |
#posts ⇒ Object
Returns the value of attribute posts.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def posts @posts end |
#username ⇒ Object
Returns the value of attribute username.
2 3 4 |
# File 'lib/models/instagram_user_with_posts.rb', line 2 def username @username end |