Class: Instascraper::Bookmark
- Inherits:
-
Object
- Object
- Instascraper::Bookmark
- Defined in:
- lib/instascraper/bookmark.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(link, title, text) ⇒ Bookmark
constructor
A new instance of Bookmark.
Constructor Details
#initialize(link, title, text) ⇒ Bookmark
Returns a new instance of Bookmark.
7 8 9 10 11 |
# File 'lib/instascraper/bookmark.rb', line 7 def initialize(link, title, text) @link = link @title = title @text = text end |
Instance Attribute Details
#link ⇒ Object (readonly)
Returns the value of attribute link.
3 4 5 |
# File 'lib/instascraper/bookmark.rb', line 3 def link @link end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/instascraper/bookmark.rb', line 5 def text @text end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/instascraper/bookmark.rb', line 4 def title @title end |