Class: InstaScrape::InstagramPost
- Inherits:
-
Object
- Object
- InstaScrape::InstagramPost
- Defined in:
- lib/models/instagram_post.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#hi_res_image ⇒ Object
Returns the value of attribute hi_res_image.
-
#image ⇒ Object
Returns the value of attribute image.
-
#likes ⇒ Object
Returns the value of attribute likes.
-
#link ⇒ Object
Returns the value of attribute link.
-
#text ⇒ Object
Returns the value of attribute text.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(link, image, options = {}) ⇒ InstagramPost
constructor
A new instance of InstagramPost.
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, = {}) @image = image @link = link @date = [:date] @text = [:text] @username = [:username] @hi_res_image = [:hi_res_image] @likes = [:likes] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def date @date end |
#hi_res_image ⇒ Object
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 |
#image ⇒ Object
Returns the value of attribute image.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def image @image end |
#likes ⇒ Object
Returns the value of attribute likes.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def likes @likes end |
#link ⇒ Object
Returns the value of attribute link.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def link @link end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def text @text end |
#username ⇒ Object
Returns the value of attribute username.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def username @username end |