Class: TildeScraper::LinkTopic
- Defined in:
- lib/tilde_scraper/topic/link_topic.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
Returns the value of attribute link.
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
Methods included from Memorable::InstanceMethods
Instance Attribute Details
#link ⇒ Object
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
#content ⇒ Object
8 9 10 |
# File 'lib/tilde_scraper/topic/link_topic.rb', line 8 def content link end |
#display_content ⇒ Object
12 13 14 |
# File 'lib/tilde_scraper/topic/link_topic.rb', line 12 def display_content puts "Topic Link: #{link}" end |
#type ⇒ Object
4 5 6 |
# File 'lib/tilde_scraper/topic/link_topic.rb', line 4 def type "link" end |