Class: InstaScrape::InstagramPost

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(link, image, options = {}) ⇒ InstagramPost

Returns a new instance of InstagramPost.



3
4
5
6
7
8
9
10
11
# File 'lib/models/instagram_post.rb', line 3

def initialize(link, image, options = {})
  @image = image
  @link = link
  @date = options[:date]
  @text = options[:text]
  @username = options[:username]
  @hi_res_image = options[:hi_res_image]
  @likes = options[:likes]
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#hi_res_imageObject

Returns the value of attribute hi_res_image.



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

def hi_res_image
  @hi_res_image
end

#imageObject

Returns the value of attribute image.



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

def image
  @image
end

#likesObject

Returns the value of attribute likes.



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

def likes
  @likes
end

Returns the value of attribute link.



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

def link
  @link
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end