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