Class: TildeScraper::LinkTopic

Inherits:
Topic
  • Object
show all
Defined in:
lib/tilde_scraper/topic/link_topic.rb

Instance Attribute Summary collapse

Attributes inherited from Topic

#age, #comment_count, #comment_link, #group, #page_id, #title, #votes, #word_count

Instance Method Summary collapse

Methods inherited from Topic

all, #comments, create_from_array, #display, find_by_page_id

Methods included from Memorable::ClassMethods

#create, #create_from_array

Methods included from Memorable::InstanceMethods

#add_attributes, #initialize

Instance Attribute Details

Returns the value of attribute link.



2
3
4
# File 'lib/tilde_scraper/topic/link_topic.rb', line 2

def link
  @link
end

Instance Method Details

#contentObject



8
9
10
# File 'lib/tilde_scraper/topic/link_topic.rb', line 8

def content
  link
end

#display_contentObject



12
13
14
# File 'lib/tilde_scraper/topic/link_topic.rb', line 12

def display_content
  puts "Topic Link: #{link}"
end

#typeObject



4
5
6
# File 'lib/tilde_scraper/topic/link_topic.rb', line 4

def type
  "link"
end