Class: InstaScrape::InstagramPost
- Inherits:
-
Object
- Object
- InstaScrape::InstagramPost
- Defined in:
- lib/models/instagram_post.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
Returns the value of attribute image.
-
#link ⇒ Object
Returns the value of attribute link.
Instance Method Summary collapse
-
#initialize(link, image) ⇒ InstagramPost
constructor
A new instance of InstagramPost.
Constructor Details
#initialize(link, image) ⇒ InstagramPost
Returns a new instance of InstagramPost.
3 4 5 6 |
# File 'lib/models/instagram_post.rb', line 3 def initialize(link, image) @image = image @link = link end |
Instance Attribute Details
#image ⇒ Object
Returns the value of attribute image.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def image @image end |
#link ⇒ Object
Returns the value of attribute link.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def link @link end |