Class: Instascraper::Bookmark

Inherits:
Object
  • Object
show all
Defined in:
lib/instascraper/bookmark.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute link.



3
4
5
# File 'lib/instascraper/bookmark.rb', line 3

def link
  @link
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/instascraper/bookmark.rb', line 5

def text
  @text
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/instascraper/bookmark.rb', line 4

def title
  @title
end