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.
-
#image ⇒ Object
Returns the value of attribute image.
-
#link ⇒ Object
Returns the value of attribute link.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(link, image, date = nil, text = nil) ⇒ InstagramPost
constructor
A new instance of InstagramPost.
Constructor Details
#initialize(link, image, date = nil, text = nil) ⇒ InstagramPost
Returns a new instance of InstagramPost.
3 4 5 6 7 8 |
# File 'lib/models/instagram_post.rb', line 3 def initialize(link, image, date=nil, text=nil) @image = image @link = link @date = date @text = text 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 |
#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 |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/models/instagram_post.rb', line 2 def text @text end |