Class: InstaScrape::InstagramUserWithPosts

Inherits:
Object
  • Object
show all
Defined in:
lib/models/instagram_user_with_posts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/models/instagram_user_with_posts.rb', line 2

def description
  @description
end

#follower_countObject

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_countObject

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

#imageObject

Returns the value of attribute image.



2
3
4
# File 'lib/models/instagram_user_with_posts.rb', line 2

def image
  @image
end

#post_countObject

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

#postsObject

Returns the value of attribute posts.



2
3
4
# File 'lib/models/instagram_user_with_posts.rb', line 2

def posts
  @posts
end

#usernameObject

Returns the value of attribute username.



2
3
4
# File 'lib/models/instagram_user_with_posts.rb', line 2

def username
  @username
end