Class: InstaScrape::InstagramUser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#follower_countObject

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_countObject

Returns the value of attribute following_count.



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

def following_count
  @following_count
end

#imageObject

Returns the value of attribute image.



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

def image
  @image
end

#post_countObject

Returns the value of attribute post_count.



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

def post_count
  @post_count
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end